1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 06:36:33 +02:00

prevent tooltip from being deleted on quick re-activations

This commit is contained in:
Ryan Berliner
2021-03-06 03:35:28 +02:00
committed by XhmikosR
parent 6ecd1c626e
commit d491c29aa0
2 changed files with 33 additions and 0 deletions

View File

@@ -329,6 +329,10 @@ class Tooltip extends BaseComponent {
const tip = this.getTipElement()
const complete = () => {
if (this._isWithActiveTrigger()) {
return
}
if (this._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
tip.parentNode.removeChild(tip)
}