title: Section ID disables bootstrap navbar dropdown - Why?
body: <p>As practice, I'm creating a bootstrap html website. I have a navbar, with a few basic buttons and a dropdown. Every nav-link scrolls the page to the related section.</p>
  
  <p>Now, when I use "section id='gallery'" in my code, my dropdown in the navbar doesn't work anymore. When I use any other id, or blank, it works as intended. Note that every other section follows the same principle and is working.</p>
  
  <p>What is causing the problem, and how can I fix it?</p>
  
  <p>Thanks for your help.</p>
  
  <pre><code>&lt;!-- Navbar --&gt;
  
  &lt;nav class="navbar navbar-expand-lg navbar-light bg-dark fixed-top" id="mainNav"&gt;
    &lt;div class="container"&gt;
      &lt;a href="#page-top" class="navbar-brand js-scroll-trigger"&gt;Title&lt;/a&gt;
      &lt;button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"&gt;Menu &lt;i class="fa fa-bars"&gt;&lt;/i&gt;&lt;/button&gt;
      &lt;div class="collapse navbar-collapse" id="navbarResponsive"&gt;
        &lt;ul class="navbar-nav ml-auto"&gt;
          &lt;li class="nav-item"&gt;
            &lt;a href="#about" class="nav-link js-scroll-trigger"&gt;About&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="nav-item dropdown"&gt;
            &lt;a href="#gallery" class="nav-link dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;Gallery&lt;/a&gt;
            &lt;div class="dropdown-menu js-scroll-trigger" aria-labelledby="navbarDropdownMenuLink"&gt;
              &lt;a href="#content1" class="dropdown-item js-scroll-trigger"&gt;Content1&lt;/a&gt;
              &lt;a href="#content2" class="dropdown-item js-scroll-trigger"&gt;Content2&lt;/a&gt;
            &lt;/div&gt;
          &lt;/li&gt;
          &lt;li class="nav-item"&gt;
            &lt;a href="#contact" class="nav-link js-scroll-trigger"&gt;Contact&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt; &lt;!-- End navbarResponsive --&gt;
    &lt;/div&gt; &lt;!-- End container --&gt;
  &lt;/nav&gt;
  
  &lt;!-- END Navbar --&gt;
  </code></pre>
  
  <p>Faulty ID is below. When I change the "#" to "gallery", the dropdown menu does not work.</p>
  
  <pre><code>&lt;!-- Gallery --&gt;
  &lt;section id="#" class="content-section text center"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-lg-8 mx-auto"&gt;
          &lt;h2 class="headerText"&gt;Gallery&lt;/h2&gt;
        &lt;!-- Content1 --&gt;
          &lt;section id="content1" class="content-section text center"&gt;
            &lt;div class="container"&gt;
              &lt;div class="row"&gt;
                &lt;div class="col-lg-8 mx-auto"&gt;
                  &lt;h3 class="headerText"&gt;Content1&lt;/h3&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/section&gt;
  
          &lt;!-- End Content1 --&gt;
  
          &lt;!-- Content2 --&gt;
  
          &lt;section id="content2" class="content-section text center"&gt;
            &lt;div class="container"&gt;
              &lt;div class="row"&gt;
                &lt;div class="col-lg-8 mx-auto"&gt;
                  &lt;h3 class="headerText"&gt;Content2&lt;/h3&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/section&gt; &lt;!-- End Content2 --&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;
  
  &lt;!-- END Gallery --&gt;
  </code></pre>
  
  <p>Hope someone can help me understand this better.</p>