title: Bootstrap v5 wp-bootstrap-navwalker dropdown navbar not work
body: <p>I use Bootstrap v5 and [wp-bootstrap-navwalker][1] <br><br>
  in function.php <br></p>
  <pre><code>&lt;?php
    require_once('class-wp-bootstrap-navwalker.php');
    function main_menu(){
      wp_nav_menu(array(
        'theme_location'    =&gt; 'main-menu',
        'menu_class'        =&gt; 'nav navbar-nav',
        'depth'             =&gt; 2,
        'container'         =&gt; 'div',
        'container_class'   =&gt; 'collapse navbar-collapse',
        'container_id'      =&gt; 'navbarSupportedContent',
        'fallback_cb'       =&gt; 'WP_Bootstrap_Navwalker::fallback',
        'walker'            =&gt; new WP_Bootstrap_Navwalker(),
      ));
    }
  ?&gt;
  </code></pre>
  <p>in header.php <br></p>
  <pre><code>&lt;nav class=&quot;navbar navbar-expand-lg navbar-light bg-light&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;
      &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;Navbar&lt;/a&gt;
      &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-bs-toggle=&quot;collapse&quot; data-bs-target=&quot;#navbarSupportedContent&quot; aria-controls=&quot;navbarSupportedContent&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;
        &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;?php main_menu() ?&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  <p>the dropdown menu not work <br>
  [1]: <a href="https://github.com/wp-bootstrap/wp-bootstrap-navwalker" rel="noreferrer">https://github.com/wp-bootstrap/wp-bootstrap-navwalker</a></p>