In my Bootstrap 4 project, I have successfully implemented a navigation bar that is fully functional. However, when trying to replicate the same bar in another section of my code, only one of the two items seem to be working properly! After thorough investigation, I noticed that on the functioning item, there is an event box at the end of the line when inspecting the code. I am not sure what this means as the non-working line does not have it. Despite comparing the code and CSS, I cannot find any noticeable differences between the two:
Case 1 <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Teams</a>
without event
Case 2 <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">User: {{ app.user.firstNameLastName }}</a>
with an event
Strangely, only the line with the event seems to work correctly...
So now the question remains - What added that event listener and how can I reproduce it?