-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Modal] Dimmer-Click closed Modal when allowMultiple=true even if onHide()=false #288
[Modal] Dimmer-Click closed Modal when allowMultiple=true even if onHide()=false #288
Conversation
Modal event |
You mean when clicking on the button within the first modal after opening the first (just because the fiddle does not allow to close any modal when it is openened once) ? Then it's wanted behavior because the onhide is called for each opened modal when clicking on the dimmer. The fiddle defines the onhide method globally in the modals prototype so it is assigned to every modal |
I have set |
😱 You are right, something is wrong with the attached events... i'll take care of it. Thanks for finding it out |
@prudho I fixed it now, was quite nasty. It was indeed totally bugged when using multiple modals, because the return false of onHide was not respected within the loop in
|
…alse) returns false at onHide
🙄 Also fixed dimmer-click now when allowMultiple=false and onHide return false... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Trying to close a modal by clicking in the dimmer area but having
return false
at theonHide
-Method did still close the modal ifallowMultiple
was set to trueTestcase
Unfixed
https://jsfiddle.net/ibelar/h8a3se4o/
Fixed
https://jsfiddle.net/bagwd05n/
Closes
#215
#284