My attempt at creating a collapsing navbar isn't working as expected, and I'm struggling to identify the issue.
I have set up a collapse toggler that should target #navbar1. However, when I shrink the page, the Navbar collapses, the .navbar-toggler-icon appears but does not reappear when clicking the toggler. Upon inspecting the CSS, I noticed a selector .collapse:not(.show) that applies display:none; But even after adding the class .show, it remains visible and doesn't hide upon toggling.
Any help would be greatly appreciated :)
Edit: I have included bootstrap.min.js
<nav class="navbar navbar-light navbar-expand-lg fixed-top">
<div class="container-lg">
<ul class="navbar-brand navbar-nav nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Teamserver.at</a>
</li>
</ul>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar1" aria-controls="navbar1" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar1">
<ul class="navbar-nav nav ml-auto navbar-right">
<li class="nav-item">
<a class="nav-link" href="#">XMPP/Jabber</a>
</li>
<li class="nav-item ">
<a class="nav-link active" href="#">Über Teamserver</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Webinterface</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Einstellungen</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Software</a>
</li>
</ul>
</div>
<div class="navbar-right">
<ul class="navbar-nav nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#"><button class="btn btn-light">Sign in</button></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"><button class="btn btn-primary">Sign up</button></a>
</li>
</div>
</div>
</nav>