2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

only trigger tooltip inserted event on true dom insert

This commit is contained in:
Ryan Berliner
2021-03-07 17:09:17 +02:00
committed by XhmikosR
parent 72d2313579
commit 99b2c0b390
2 changed files with 63 additions and 2 deletions
+1 -2
View File
@@ -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 {