I am trying to show my Bootstrap dropdown menu on t-on-keyup.
When i try to call new bootstrap.Dropdown(element) is says that it's undefined.
If I'm correct, bootstrap is already inside the odoo system. So I don't have any imports for bootstrap in my application.
This is the function I am trying to call:
showDropdown = (dropdownElement) => {
if (dropdownElement) {
const dropdown = new bootstrap.Dropdown(dropdownElement);
dropdown.show();
}
}
Do I still need to import bootstrap individually? Or am I doing something else wrong?