title: Bootstrap modal closes on clicking anywhere
body: <p>I am trying to use a simple bootstrap modal, but it closes on clicking it anywhere, and not on clicking on the close button only. I haven't used any other extra javascript or jquery code on the page. Here's the link where my code is. The modal trigger button is on the bottom.</p>
  
  <p><a href="http://aijaz.co/angloamerican/" rel="noreferrer">http://aijaz.co/angloamerican/</a></p>
  
  <p>This is the default code I am using. </p>
  
  <pre><code>&lt;a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large"&gt;Launch demo modal&lt;/a&gt;
  
  
  &lt;div id="myModal" class="modal fade"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
                  &lt;h4 class="modal-title"&gt;Confirmation&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;p&gt;Do you want to save changes you made to document before closing?&lt;/p&gt;
                  &lt;p class="text-warning"&gt;&lt;small&gt;If you don't save, your changes will be lost.&lt;/small&gt;&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                  &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>