Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRyan Berliner <ryan.berliner@gmail.com>2021-03-07 16:28:41 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-03-16 08:48:50 +0300
commit72d23135799059d4282ea5764455f92f39ced5a5 (patch)
treecbabeb7072f5c487e1300bf585c1a74fa35553e7 /js
parent6ef70b342c27445685715f51cfcafb719356870f (diff)
reuse existing popper on show during tooltip fadeout
Diffstat (limited to 'js')
-rw-r--r--js/src/tooltip.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 857f72c8ad..de7dcca693 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -284,11 +284,11 @@ class Tooltip extends BaseComponent {
EventHandler.trigger(this._element, this.constructor.Event.INSERTED)
if (this._popper) {
- this._popper.destroy()
+ this._popper.update()
+ } else {
+ this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))
}
- this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))
-
tip.classList.add(CLASS_NAME_SHOW)
const customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass