Skip to content

Commit 09bffac

Browse files
author
Guillaume Chau
committed
Fix #55 Disable popper events when tooltip is hidden
1 parent c919765 commit 09bffac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tooltip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export default class Tooltip {
299299
if (this._tooltipNode) {
300300
this._tooltipNode.style.display = ''
301301
this._tooltipNode.setAttribute('aria-hidden', 'false')
302+
this.popperInstance.enableEventListeners()
302303
this.popperInstance.update()
303304
return this
304305
}
@@ -382,6 +383,8 @@ export default class Tooltip {
382383
this._tooltipNode.style.display = 'none'
383384
this._tooltipNode.setAttribute('aria-hidden', 'true')
384385

386+
this.popperInstance.disableEventListeners()
387+
385388
clearTimeout(this._disposeTimer)
386389
const disposeTime = directive.options.disposeTimeout
387390
if (disposeTime !== null) {

0 commit comments

Comments
 (0)