Skip to content

Commit

Permalink
Revert "tooltip.js: use a loop"
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 4, 2022
1 parent 1f2f891 commit f4f9eb8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit f4f9eb8

Please sign in to comment.