diff --git a/js/src/tooltip.js b/js/src/tooltip.js index ef5b9fa82..407fa5930 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -286,9 +286,10 @@ class Tooltip extends BaseComponent { } } - this._activeTrigger[TRIGGER_CLICK] = false - this._activeTrigger[TRIGGER_FOCUS] = false - this._activeTrigger[TRIGGER_HOVER] = false + for (const trigger of [TRIGGER_CLICK, TRIGGER_FOCUS, TRIGGER_HOVER]) { + this._activeTrigger[trigger] = false + } + this._isHovered = false const complete = () => {