bootstrap modal show close when clicked outside -
i have bootstrap modal :
<div class="modal show" id="mymodal" role="dialog" data-keyboard="true" data-backdrop="true"> <div class="modal-dialog"> <!-- modal content--> <div class="modal-content"> <div class="modal-body"> <p>some text in modal.</p> </div> </div> </div> </div>
it gives me modal.
here used show
initialize modal @ first. when modal initialized , click outside modal not close.
what might issue here
data-backdrop="static"
property value 'static' prevent closing modal.
data-keyboard="false"
property prevent closing modal pressing esc.
Comments
Post a Comment