diff options
| author | GeoSot <[email protected]> | 2021-06-10 10:58:41 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-07-22 17:20:38 +0300 |
| commit | 9c3ceaa25b0fcb9b5bd9ff688235e4f3b741026a (patch) | |
| tree | 5e50c9660ea072ae64e4aaa8ce7d1bc603c5aef3 /js/src/tooltip.js | |
| parent | a97fd1cd2420a4c07589689593385484bd38fb50 (diff) | |
| download | bootstrap-9c3ceaa25b0fcb9b5bd9ff688235e4f3b741026a.tar.xz bootstrap-9c3ceaa25b0fcb9b5bd9ff688235e4f3b741026a.zip | |
popover: Move common code in tooltip's `getTipElement()`
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 5746ec6ba..fa364a1e6 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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 } |
