aboutsummaryrefslogtreecommitdiff
path: root/js/dist/tooltip.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-09-07 18:31:39 +0300
committerGitHub <[email protected]>2022-09-07 18:31:39 +0300
commit23e50829f958ea1d741d63e2781716be037e4644 (patch)
tree8ebbded3408c0ca80bba63f755f45f3c9cb71780 /js/dist/tooltip.js
parent23fb7a79156d1ea4ce2ab5713debbbc251b4e22f (diff)
downloadbootstrap-23e50829f958ea1d741d63e2781716be037e4644.tar.xz
bootstrap-23e50829f958ea1d741d63e2781716be037e4644.zip
Release v5.2.1 (#37098)
* Bump version to v5.2.1. * Dist
Diffstat (limited to 'js/dist/tooltip.js')
-rw-r--r--js/dist/tooltip.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js
index 56744f188..73eeffafc 100644
--- a/js/dist/tooltip.js
+++ b/js/dist/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()) {