Navbar toggle button opens then immediately closes
<p>I have a site using <strong>Bootstrap</strong>.</p>
<p>When the window size reduces to mobile, the Navbar menu correctly collapses to the usual hamburger (3-stripe) button.</p>
<p>My problem is that when I click this button to open the menu, it opens, but then immediately collapses again.</p>