Fix ESLint nits

This commit is contained in:
Andreas Nedbal 2023-01-04 17:31:19 +01:00 committed by Andreas Nedbal
parent c9b39ad1e5
commit 58717c0e7f
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
import * as Popper from '@popperjs/core';
import * as bootstrap from 'bootstrap';
/**
@ -10,9 +9,9 @@ import * as bootstrap from 'bootstrap';
export default function (): void {
document.addEventListener('turbo:load', () => {
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
[...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
const dropdownElementList = document.querySelectorAll('.dropdown-toggle');
const dropdownList = [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl));
[...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl));
});
}