title: Bootstrap datepicker doesn't close
body: <p>I have read that this bug was fixed but doesn't really seem so. I have a boostrap modal appearing when I create an new employee in my website. And I am using the following to create a datepicker for the date of birth of the new employee.</p>
  
  <pre><code>&lt;div class="input-group date insertInfo" data-provide="datepicker"&gt;
      &lt;input type="text" class="form-control"&gt;
      &lt;div class="input-group-addon"&gt;
          &lt;span class="glyphicon glyphicon-th"&gt;&lt;/span&gt;
      &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>and then after the load of my js scripts (first I load bootstrap and then bootstrap-datepicker.js) I use:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $('.datepicker').datepicker({
              format: 'mm-dd-yyyy'
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Unfortunately what happens is that I can select the date on the drop down calendar shown by the datepicker, but once selected I cannot close it anymore. Can you maybe help me with this issue? Thanks in advance</p>