mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-02 16:04:07 +03:00
popover: Move common code in tooltip's getTipElement()
This commit is contained in:
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user