1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 06:36:33 +02: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

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 {