I'm encountering an issue with the Bootstrap navigation bar. I've been using the sticky mode as outlined in the documentation:
<nav class="navbar sticky-top navbar-light bg-light">
<a class="navbar-brand" href="#">Sticky top</a>
</nav>
<router-outlet (deactivate)="onDeactivate()"></router-outlet>
<app-footer></app-footer>
Upon opening the page, the navigation bar is at the top as expected. However, when I scroll down, it remains fixed at the top of the page instead of following along with the scrollbar. I'm unsure if my understanding of how it should work is incorrect or if there is a problem with the code above. Could it be possible that it's not functioning properly due to the existing codebase on my page (which is almost complete and I only wanted to add this feature at the end)?