diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2022-09-18 10:27:18 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2022-09-18 10:28:31 +0300 |
commit | 6ecce3b28ef31d48a7f0e5d1bafb5dfd4812812f (patch) | |
tree | 0b52ebd8182d939aa8e71777e8c809dc620d8892 /assets/javascripts/bootstrap/tooltip.js | |
parent | c548a9a69cc1d4b833696722666c1c610cf9f4a0 (diff) |
Update to v5.2.1v5.2.1
1. `rake 'update[23e50829f958ea1d741d63e2781716be037e4644]'`
2. Bump minimum `popper_js` version (2.11.5 -> 2.11.6).
3. Bump version in README.md and version.rb.
Diffstat (limited to 'assets/javascripts/bootstrap/tooltip.js')
-rw-r--r-- | assets/javascripts/bootstrap/tooltip.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/assets/javascripts/bootstrap/tooltip.js b/assets/javascripts/bootstrap/tooltip.js index d05f238..f5be9f4 100644 --- a/assets/javascripts/bootstrap/tooltip.js +++ b/assets/javascripts/bootstrap/tooltip.js @@ -1,5 +1,5 @@ /*! - * Bootstrap tooltip.js v5.2.0 (https://getbootstrap.com/) + * Bootstrap tooltip.js v5.2.1 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ @@ -37,7 +37,7 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.2.0): tooltip.js + * Bootstrap (v5.2.1): tooltip.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ @@ -126,7 +126,7 @@ this._isEnabled = true; this._timeout = 0; - this._isHovered = false; + this._isHovered = null; this._activeTrigger = {}; this._popper = null; this._templateFactory = null; @@ -199,6 +199,10 @@ this.tip.remove(); } + if (this._config.originalTitle) { + this._element.setAttribute('title', this._config.originalTitle); + } + this._disposePopper(); super.dispose(); @@ -259,13 +263,13 @@ } const complete = () => { - const previousHoverState = this._isHovered; - this._isHovered = false; EventHandler__default.default.trigger(this._element, this.constructor.eventName(EVENT_SHOWN)); - if (previousHoverState) { + if (this._isHovered === false) { this._leave(); } + + this._isHovered = false; }; this._queueCallback(complete, this.tip, this._isAnimated()); @@ -296,7 +300,7 @@ this._activeTrigger[TRIGGER_CLICK] = false; this._activeTrigger[TRIGGER_FOCUS] = false; this._activeTrigger[TRIGGER_HOVER] = false; - this._isHovered = false; + this._isHovered = null; // it is a trick to support manual triggering const complete = () => { if (this._isWithActiveTrigger()) { |