1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 13:29:06 +02:00

popover: Move common code in tooltip's getTipElement()

This commit is contained in:
GeoSot
2021-06-10 10:58:41 +03:00
committed by XhmikosR
parent a97fd1cd24
commit 9c3ceaa25b
2 changed files with 4 additions and 6 deletions

View File

@@ -367,7 +367,10 @@ class Tooltip extends BaseComponent {
const element = document.createElement('div')
element.innerHTML = this._config.template
this.tip = element.children[0]
const tip = element.children[0]
tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)
this.tip = tip
return this.tip
}