diff --git a/app/javascript/retrospring/initializers/bootstrap.ts b/app/javascript/retrospring/initializers/bootstrap.ts index 277f8c15..82e7dab9 100644 --- a/app/javascript/retrospring/initializers/bootstrap.ts +++ b/app/javascript/retrospring/initializers/bootstrap.ts @@ -11,7 +11,7 @@ export default function (): void { const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); - const dropdownElementList = document.querySelectorAll('.dropdown-toggle'); + const dropdownElementList = document.querySelectorAll('[data-bs-toggle="dropdown"]'); [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl)); // HACK/BUG?: Bootstrap disables dropdowns in navbars, here we re-enable and "kinda" fix it