console error fixed

This commit is contained in:
Burak Civan 2022-12-09 15:44:45 +03:00
parent 650728143b
commit 1222cc3312

View File

@ -252,7 +252,7 @@ function runTooltip(tooltipToggleEl) {
} else {
tooltipEl.classList.add("opacity-100", "visible");
}
}
// Enable the event listeners
popperInstance.setOptions((options) => ({
@ -268,8 +268,10 @@ function runTooltip(tooltipToggleEl) {
popperInstance.update();
}
}
function hide() {
if (tooltipEl !== null) {
// Hide the tooltip
if (tooltipEl.classList.contains("opacity-100", "visible")) {
tooltipEl.classList.remove("opacity-100", "visible");
@ -289,6 +291,7 @@ function runTooltip(tooltipToggleEl) {
],
}));
}
}
var showEvents = [];
var hideEvents = [];