diff --git a/docs/content/6.overlays/1.modal.md b/docs/content/6.overlays/1.modal.md index e71dff0f..c2f2a3fa 100644 --- a/docs/content/6.overlays/1.modal.md +++ b/docs/content/6.overlays/1.modal.md @@ -33,7 +33,7 @@ Set the `transition` prop to `false` to disable it. ### Prevent close -Use the `prevent-close` prop to disable the outside click alongside the `esc` keyboard shortcut. +Use the `prevent-close` prop to disable the outside click alongside the `esc` keyboard shortcut. A `close-prevented` event will be emitted when the user tries to close the modal. :component-example{component="modal-example-prevent-close"} diff --git a/docs/content/6.overlays/2.slideover.md b/docs/content/6.overlays/2.slideover.md index 9c7b838e..6a471cb9 100644 --- a/docs/content/6.overlays/2.slideover.md +++ b/docs/content/6.overlays/2.slideover.md @@ -33,7 +33,7 @@ Set the `transition` prop to `false` to disable it. ### Prevent close -Use the `prevent-close` prop to disable the outside click alongside the `esc` keyboard shortcut. +Use the `prevent-close` prop to disable the outside click alongside the `esc` keyboard shortcut. A `close-prevented` event will be emitted when the user tries to close the modal. :component-example{component="slideover-example-prevent-close"} diff --git a/src/runtime/components/overlays/Modal.vue b/src/runtime/components/overlays/Modal.vue index 5b726619..4f5edb21 100644 --- a/src/runtime/components/overlays/Modal.vue +++ b/src/runtime/components/overlays/Modal.vue @@ -1,6 +1,6 @@