title: Bootstrap Nav Bar not closing on mobile
body: <p>I am using the bootstrap navbar-toggle and targeting the class navbar-collapsed but my navbar is not automatically closing on mobile:</p>
  
  <pre><code>&lt;div class="navbar navbar-default navbar-fixed-top" role="navigation" id="navbar"&gt;
      &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
               &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                  &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a class="navbar-brand scrollTo" href="#intro"&gt;&lt;img id="bg-img" src="./img/hn-logo.png"&gt;&lt;/a&gt;
          &lt;/div&gt;
  
              &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
  
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                  &lt;li class="active"&gt;&lt;a href="#intro"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="#section1"&gt;Products&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="#section2"&gt;Learn&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="#section3"&gt;Lab Testing&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="#section4"&gt;Partners&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;!--/.nav-collapse --&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>