Dropdown Events Not Firing
Created by: bluedge
OSX 10.15.7 Chrome 86.0.4240.80 Bootstrap 5.0-beta-2
Events not firing: shown.bs.dropdown
, hide.bs.dropdown
, hidden.bs.dropdown
Note: I can't get a simple click
event either.
Test on the v5 live doc in Console. (https://v5.getbootstrap.com/docs/5.0/components/dropdowns/)
const d = document.getElementById('dropdownMenuButton');
d.addEventListener('show.bs.dropdown', (e) => console.log(e) );
d.addEventListener('shown.bs.dropdown', (e) => console.log(e) );
d.addEventListener('hide.bs.dropdown', (e) => console.log(e) );
d.addEventListener('hidden.bs.dropdown', (e) => console.log(e) );