Remove tooltip initializer from Bootstrap file

This commit is contained in:
Andreas Nedbal 2024-03-10 15:28:43 +01:00 committed by Andreas Nedbal
parent 94f027f546
commit 7f93fabb62
1 changed files with 0 additions and 3 deletions

View File

@ -8,9 +8,6 @@ import * as bootstrap from 'bootstrap';
*/
export default function (): void {
document.addEventListener('turbo:load', () => {
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
[...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
const dropdownElementList = document.querySelectorAll('[data-bs-toggle="dropdown"]');
[...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl));