diff options
author | Ryan Berliner <ryan.berliner@gmail.com> | 2021-03-07 18:09:17 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-03-16 08:48:50 +0300 |
commit | 99b2c0b390660b2032c3129b8ebff02fa1e034c9 (patch) | |
tree | 445328504a85ff2dc9920720494b1d7141dfa2d7 /js/src | |
parent | 72d23135799059d4282ea5764455f92f39ced5a5 (diff) |
only trigger tooltip inserted event on true dom insert
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/tooltip.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index de7dcca693..979bd07738 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -279,10 +279,9 @@ class Tooltip extends BaseComponent { if (!this._element.ownerDocument.documentElement.contains(this.tip)) { container.appendChild(tip) + EventHandler.trigger(this._element, this.constructor.Event.INSERTED) } - EventHandler.trigger(this._element, this.constructor.Event.INSERTED) - if (this._popper) { this._popper.update() } else { |