From f4f9eb820aad9fb3ae3434fff0a3e1494d1e458c Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 4 Oct 2022 09:37:58 +0300 Subject: [PATCH] Revert "tooltip.js: use a loop" --- js/src/tooltip.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/src/tooltip.js b/js/src/tooltip.js index a7ab9c1f0bea..2cd803a0dc08 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -270,10 +270,9 @@ class Tooltip extends BaseComponent { } } - for (const trigger of [TRIGGER_CLICK, TRIGGER_FOCUS, TRIGGER_HOVER]) { - this._activeTrigger[trigger] = false - } - + this._activeTrigger[TRIGGER_CLICK] = false + this._activeTrigger[TRIGGER_FOCUS] = false + this._activeTrigger[TRIGGER_HOVER] = false this._isHovered = null // it is a trick to support manual triggering const complete = () => {