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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -