title: dropdown menu disappear if the link is clicked when the browser is resized
body: <p>my dropdown menu in navbar works fine when the browser is maximized but if i resize the browser to a mobile size then the dropdown menu does not show up as well as the menu button toggled up. here is my navbar code with dropdown. I am using bootstrap 3.when i clicked EBBL the dropdown menu does not show up and the whole navbar menu is toggled up.  </p>
  
  <p><a href="https://i.stack.imgur.com/Eu0NV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eu0NV.png" alt=""></a></p>
  
  <pre><code>&lt;nav class="navbar navbar-custom navbar-fixed-top" role="navigation"&gt;
      &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"&gt;
                  &lt;i class="fa fa-bars"&gt;&lt;/i&gt;
              &lt;/button&gt;
              &lt;a class="navbar-brand page-scroll" href="&lt;?php echo site_url('home/index')?&gt;"&gt;BCTF&lt;/a&gt;
          &lt;/div&gt;
  
          &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
          &lt;div class="collapse navbar-collapse navbar-right navbar-main-collapse "&gt;
              &lt;ul class="nav navbar-nav"&gt;
                  &lt;!-- Hidden li included to remove active class from about link when scrolled up past about section --&gt;
                  &lt;li class="hidden"&gt;
                      &lt;a href="#page-top"&gt;&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a class="page-scroll" href="&lt;?php echo site_url('home/index')?&gt;"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a class="page-scroll" href="&lt;?php echo site_url('home/show_about')?&gt;"&gt;About&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a class="page-scroll" href="&lt;?php echo site_url('home/show_open_butterfly_park')?&gt;"&gt;Open Butterfly Park&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class="dropdown"&gt;
                      &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" &gt;EBBL&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                      &lt;ul class="dropdown-menu"&gt;
                          &lt;li&gt;&lt;a href="&lt;?php echo site_url('home/show_ebbl')?&gt;"&gt;About EBBL&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;Content 1&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;Content 2&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;Content 3&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;Content 4&lt;/a&gt;&lt;/li&gt;
                       &lt;/ul&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a class="page-scroll" href="&lt;?php echo site_url('home/show_biography')?&gt;"&gt;Biography&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a class="page-scroll" href="&lt;?php echo site_url('home/show_gallery')?&gt;"&gt;Gallery&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;!-- /.navbar-collapse --&gt;
      &lt;/div&gt;
      &lt;!-- /.container --&gt;
  &lt;/nav&gt;
  </code></pre>