diff --git a/docs/content/3.components/modal.md b/docs/content/3.components/modal.md index 65315927..9e94eecb 100644 --- a/docs/content/3.components/modal.md +++ b/docs/content/3.components/modal.md @@ -334,7 +334,7 @@ name: 'modal-programmatic-example' :: ::tip -You can close the modal within the modal component by calling `modal.close()`. +You can close the modal within the modal component by emitting `"emit('close')`. :: ### Nested modals diff --git a/docs/content/3.components/slideover.md b/docs/content/3.components/slideover.md index 047f08ed..c8023fb4 100644 --- a/docs/content/3.components/slideover.md +++ b/docs/content/3.components/slideover.md @@ -333,7 +333,7 @@ name: 'slideover-programmatic-example' :: ::tip -You can close the slideover within the slideover component by calling `slideover.close()`. +You can close the slideover within the slideover component by emitting `emit('close')`. :: ### Nested slideovers