diff options
author | Ryan Berliner <ryan.berliner@gmail.com> | 2021-03-07 16:28:41 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-03-16 08:48:50 +0300 |
commit | 72d23135799059d4282ea5764455f92f39ced5a5 (patch) | |
tree | cbabeb7072f5c487e1300bf585c1a74fa35553e7 /js | |
parent | 6ef70b342c27445685715f51cfcafb719356870f (diff) |
reuse existing popper on show during tooltip fadeout
Diffstat (limited to 'js')
-rw-r--r-- | js/src/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 857f72c8ad..de7dcca693 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -284,11 +284,11 @@ class Tooltip extends BaseComponent { EventHandler.trigger(this._element, this.constructor.Event.INSERTED) 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) const customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass |