Javascript – Opening a bootstrap5 dropdown programmatically only works in the browser's dev console, not in vanilla JS code
I tried to open a Bootstrap5 dropdown when clicking a link in my web app. I tried dispatching events and using the bootstrap Dropdown classes, both without success. The code of both approaches works, when I run it in the…