js console error fixed

This commit is contained in:
Burak Civan 2022-12-09 13:44:52 +03:00
parent 95cce00482
commit cc54a887f1

View File

@ -246,10 +246,12 @@ function runTooltip(tooltipToggleEl) {
function show() { function show() {
// Make the tooltip visible // Make the tooltip visible
if (tooltipEl.classList.contains("opacity-0", "invisible")) { if (tooltipEl !== null) {
tooltipEl.classList.remove("opacity-0", "invisible"); if (tooltipEl.classList.contains("opacity-0", "invisible")) {
} else { tooltipEl.classList.remove("opacity-0", "invisible");
tooltipEl.classList.add("opacity-100", "visible"); } else {
tooltipEl.classList.add("opacity-100", "visible");
}
} }
// Enable the event listeners // Enable the event listeners