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
.on('hidden') event called only once #202
Comments
Same with show, show.bs.modal, shown, and shown.bs.modal. This is referring to Bootstrap 3 for clarity. |
I've found the culprit on line 84 of bootstrap-modal:
should be:
|
See my comment here: #199 (comment) |
0236f06 should fix this. Please update to the latest version and let me know. Thanks |
I've tried the update but it still doesn't work in my use case:
Unable to close or call modal('hide'). I'll see if I can set up a fiddle, but the work around allowed me to do what I needed. |
I'm using version: when I write: i = 1; whenever I close the modal the var i should increase and console show the value of i, but this only happens the first time I close the modal. |
This seems to be a dup of #228. A workaround is provided in that issue |
how to solve |
$modal.on('show', function () { ... }
$modal.on('shown', function () { ... }
$modal.on('hide', function () { ... }
$modal.on('hidden', function () { ... } |
Closing as dup |
For some reason the original modal event
hidden
is only called once when the modal is closed. Can be reproduced on the demo page by entering this into console and opening the first modal repeatedly.The text was updated successfully, but these errors were encountered: