-
Notifications
You must be signed in to change notification settings - Fork 767
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
Prevent close of remodal through event #97
Comments
👍 very important and simple feature, miss this badly.. |
Actually it should behave like the Angular-UI Bootstrap modal. There is also a closing event.
I think you should do the same here. On preventDefault or return false, just change back the state of the modal and abort closing. |
+1 to this. This is an important feature. Any chance of getting this included? |
+1 to this as well, I could really use this on my current project. I came to the issues tab to make an issue about it. |
One temporary solution: $remodalConfirm.on('click', function (e) {
e.preventDefault();
e.stopPropagation();
}); |
I could really use this feature as well. One idea I have (yet to be proven) is using a transparent element that takes up the entire window, with a z-index greater than that of the modal while I want to disable 'clicking off' the modal. In my situation, the user doesn't need to interact with any other elements while I'm temporarily disabling the ability to dismiss the modal. This work around doesn't address the 'esc' key, however. |
Could have really done with this feature on a project of mine! Needed to stop window from closing if AJAX from within modal failed and display a nice little error. |
You can use:
|
It should be possible to cancel a close event triggered by close, cancel and confirmation buttons based on an event triggered. Suppose I have a modal and until I execute an specific action, I do not want it to be closed.
Remodal should trigger a before-close event that can prevent default behavior of closing.
The text was updated successfully, but these errors were encountered: