You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When allowCancel === true - modal can be closed by clicking outside of its boundaries. The View as far as I can tell doesn't react to this event via hidden.
After testing: cancel, close, ok and click outside - I determined that all actions trigger hidden.bs.modal. First 3 events also trigger hidden in the BootstrapModal, but not the click outside of the modal.
I had to implement a workaround and instead of using this.bind('hidden', callback), I'm using:
I have also noticed this behavior. Since I don't want to have to listen on the hidden.bs.modal event through the document, I have opted to just pass backdrop: 'static' to modalOptions. It would be great if you could provide a permanent fix.
When
allowCancel === true
- modal can be closed by clicking outside of its boundaries. The View as far as I can tell doesn't react to this event viahidden
.After testing: cancel, close, ok and click outside - I determined that all actions trigger hidden.bs.modal. First 3 events also trigger
hidden
in the BootstrapModal, but not the click outside of the modal.I had to implement a workaround and instead of using this.bind('hidden', callback), I'm using:
It would be nice if hidden event would cover the click outside of modal boundaries as well.
The text was updated successfully, but these errors were encountered: