5
I have a modal where I use to view the Google Maps Map. See the code below:
<div class="modal fade" id="myMapModal" >
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close">×</button>
<h4 class="modal-title">Mapa</h4>
</div>
<div id="map-canvas" class="modal-lg"></div>
</div>
</div>
</div>
By clicking anywhere other than on modal, it is closed. I would like to disable this option so that it can close only by clicking the button x modal.
How to disable click off modal?
Good answer Lucas, I modified it to avoid confusion about the understanding of backdrop and Keyboard ;)
– Guilherme Nascimento
Thank you @Guilhermenascimento
– BrTkCa
Simple and objective! Congratulations @Brtkca
– netovgs