title: Bootstrap Modal tab first set active when close
body: <p>When close bootstrap modal with 2 tabs the focus not return to the first tab always stays in the second tab</p>
  
  <p>The problem is what</p>
  
  <p>HTML, BLADE:</p>
  
  <pre><code>&lt;a class="Ver" href="javascript:void(0)" title="Ver" data-toggle="modal" data-target="#DvModalOperacionesMensajes"&gt;
  
  &lt;div class="modal fade" name="DvModalOperacionesMensajes" id="DvModalOperacionesMensajes" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&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-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
                  &lt;h4 class="modal-title text-center" name="H4ModalOperacionesMensajes"&gt;&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;ul class="nav nav-tabs"&gt;
                      &lt;li class="active"&gt;&lt;a href="#Ver" data-toggle="tab"&gt;Ver Mensaje&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#Responder" name="AResponder" data-toggle="tab"&gt;Responder Mensaje&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;div id="myTabContent" class="tab-content"&gt;
                      &lt;div class="tab-pane fade active in" id="Ver"&gt;
                          Content 1
  
                      &lt;/div&gt;
                      &lt;div class="tab-pane fade" id="Responder"&gt;
                          Content 2
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  {!! Form::button("&lt;i class='fa fa-remove fa-lg'&gt;&lt;/i&gt; Cerrar", array("class" =&gt; "btn btn-default", "data-dismiss" =&gt; "modal")) !!}
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>