Modal Fails To Close More Than Once Through data-dismiss field
Created by: larryprice
Using the example on http://getbootstrap.com/javascript/#modals (and embedded in my own application with proper css/js files) only allows me to hit the 'X' button or a similar 'Close' button once. Relaunching the modal and hitting the 'X' button again does nothing. Clicking off the modal works. Through testing, adding
onclick="$('#begin-new-period').modal('hide');"
to the close button is a viable workaround. The code in question:
<!-- Button trigger modal -->
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
Tested on Ubuntu 13.04 64-bit Firefox 23.0 and Chromium 28.0.1500.71 Ubuntu 13.04 (28.0.1500.71-0ubuntu1.13.04.1) using the Bootstrap 3 RC2 at ~10PM EST.