-
-
Notifications
You must be signed in to change notification settings - Fork 78.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
Disallow Modal Close on Backdrop Click #3490
Comments
Yuo can use 'static' option for a backdrop which doesn't close the modal on click.
|
yep @lpinca is right, thanks! |
I want to disallow keyboard and backdrop at runtime, for example, when a specific event is triggered. It seems I can't do it. Once a modal is initialized with keyboard:true and backdrop:false, it is ALWAYS like that. How can I cancel the two options then? |
I have to use "backdrop : false" but it should close model, so that on next click, i can get that modal |
thanks! |
It is often the case that Modal dialogs are used to direct user action to some acceptance action, e.g. clicking on "Okay" button. Currently, I see no way to "lock" the user into a modal dialog until they click Ok. They can simply click anywhere on the background to exit the Modal. Even the example Modal has two buttons called "Save Changes" and "Cancel". What does a backdrop click mean? Often, a user could click the Backdrop by accident and then not know what happened.
Can you implement a feature that lets me disallow backdrop clicking to exit a modal?
The text was updated successfully, but these errors were encountered: