mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02:00
reuse existing popper on show during tooltip fadeout
This commit is contained in:
@@ -284,10 +284,10 @@ class Tooltip extends BaseComponent {
|
|||||||
EventHandler.trigger(this._element, this.constructor.Event.INSERTED)
|
EventHandler.trigger(this._element, this.constructor.Event.INSERTED)
|
||||||
|
|
||||||
if (this._popper) {
|
if (this._popper) {
|
||||||
this._popper.destroy()
|
this._popper.update()
|
||||||
}
|
} else {
|
||||||
|
|
||||||
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))
|
this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))
|
||||||
|
}
|
||||||
|
|
||||||
tip.classList.add(CLASS_NAME_SHOW)
|
tip.classList.add(CLASS_NAME_SHOW)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user