Bootstrap 3 modal doesn't close after first opening

twitter-bootstrap

Solution

This bug in bootstrap seems to be a hot topic: https://github.com/twbs/bootstrap/issues/9362

I'll be updating my bootstrap and see if that does it...

Problem

I'm thinking this is a bug with Bootstrap itself, because I'm encountering this problem even on the demonstration page. If you open the modal window, the built-in close button works the first time, but if you close the modal and re-open it, the close (and X) buttons don't close the modal, so you have to click outside of the box to close it. You can see this on the Bootstrap demonstration page: http://getbootstrap.com/javascript/#modals (Scroll down to "live demo" and click "Launch demo modal". Close the modal window once, re-open it, and the "close" button will no longer work until the page is refreshed.) Has anyone found a solution to this so that the close button works each time the modal is opened?

Original source