bootstrap-modal
bootstrap-modal copied to clipboard
Hidden event gets triggered too early
When trying to use the 'hidden' event too remove the specified modal from the DOM I stumbled upon an issue where the modal element was not re-added to it's original place in the DOM after being closed. I was able to fix this issue by removing the asynchronous animation in the modal.$element.on('hidden.modalmanager') handler in the bootstrap-modalmanager.js file and replacing it with a synchronous variant. Perhaps this can be included in future releases.