mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:29:53 +01:00
Initialize Bootstrap dropdowns on the toggle data attribute
This commit is contained in:
parent
e264a785f4
commit
b3cbfc762b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue