Navbar with dropdown menus will not work. #37551
-
This navbar contains dropdown menus that don't work while converting from Bootstrap v5.2.2 to v5.2.3. It does not dropdown, instead staying still. Can someone explain what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
In your It generates a log in the Dev Tools: Replace by My advice would be to use rather |
Beta Was this translation helpful? Give feedback.
-
I just noticed the same issue as @Alex-Toucan. I'm using a basic navbar component and including this js bundle: Dropdown does not work. I decided to use an older versions and it worked:
|
Beta Was this translation helpful? Give feedback.
In your
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
you probably kept the previous value of integrity.It generates a log in the Dev Tools:
None of the "sha384" hashes in the integrity attribute match the content of the subresource.
Replace by
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
and it worksMy advice would be to use rather
<script src="https://cdn.jsdelivr.net/npm/bo…