Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ class Tooltip extends BaseComponent {
if (trigger === 'click') {
EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, event => {
const context = this._initializeOnDelegatedTarget(event)
if (context._isShown() && context._activeTrigger[TRIGGER_CLICK]) {
context._activeTrigger[TRIGGER_CLICK] = false
} else {
context._activeTrigger[TRIGGER_CLICK] = true
}
context.toggle()
})
} else if (trigger !== TRIGGER_MANUAL) {
Expand Down
Loading
Loading