-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can close modal with escape key even if closable is set to false #262
Comments
I think this should be achieved by two options. There are use cases where the previous behavior (modal not closable by clicking but by pressing escape) is desired e.g. a slideshow with clickable arrows inside a modal. The description for the
|
to specify the exact closable behavior of a modal you can now set closable to ```click``` to allow closing nnly by clicking on the dimmer or you can set it to ```escapeKey``` to allow closing only by pressing the escape key.
I need exactly this behaviour in my project , i.e. prevent closing a modal when clicking on the dimmer, but allow this when pressing Esc button. Tried to pass |
What does |
@smartm0use If you need this functionality, you can fork the modal component and implement the changes by @larsbo that you can find here #3625. Read the first post to understand how to use it. Also, since you’re forking the modal, don’t forget to exclude it from being built in |
today, we can still close a modal even if the closable option is set to false.
The text was updated successfully, but these errors were encountered: