We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a user opens a modal and closes it by clicking the backdrop multiple times, the 'hide.bs.modal' event will fire an increasing number of time.
This is caused by the Modal.backdrop function attaching a click event listener every time the modal is shown.
Modal.backdrop
The text was updated successfully, but these errors were encountered:
Fix for twbs#9111
8c1561c
a4f0e8d
There's a way for not touch the core, but i don't know if it's cleaner or dirtier.
$('#MyModal').on('hide.bs.modal', function () { $(this).off('hide.bs.modal'); });
Sorry, something went wrong.
I'd rewrite the code listed by @KoderES above to (1st line):
$('#MyModal').off('hide.bs.modal').on('hide.bs.modal', function () { // ...
No branches or pull requests
When a user opens a modal and closes it by clicking the backdrop multiple times, the 'hide.bs.modal' event will fire an increasing number of time.
This is caused by the
Modal.backdrop
function attaching a click event listener every time the modal is shown.The text was updated successfully, but these errors were encountered: