feat(Modal/Slideover): emit close-prevented event (#1207)

This commit is contained in:
Alireza Jahandideh
2024-01-19 06:45:16 -08:00
committed by GitHub
parent ac5224cbae
commit 6faf15bc74
4 changed files with 18 additions and 6 deletions

View File

@@ -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"}

View File

@@ -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"}