mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 12:59:05 +02:00
Dist
This commit is contained in:
29
js/dist/tooltip.js
vendored
29
js/dist/tooltip.js
vendored
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Bootstrap tooltip.js v5.2.2 (https://getbootstrap.com/)
|
||||
* Bootstrap tooltip.js v5.2.3 (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.2): tooltip.js
|
||||
* Bootstrap (v5.2.3): tooltip.js
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -187,10 +187,6 @@
|
||||
clearTimeout(this._timeout);
|
||||
EventHandler__default.default.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
|
||||
|
||||
if (this.tip) {
|
||||
this.tip.remove();
|
||||
}
|
||||
|
||||
if (this._element.getAttribute('data-bs-original-title')) {
|
||||
this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
|
||||
}
|
||||
@@ -219,10 +215,7 @@
|
||||
} // todo v6 remove this OR make it optional
|
||||
|
||||
|
||||
if (this.tip) {
|
||||
this.tip.remove();
|
||||
this.tip = null;
|
||||
}
|
||||
this._disposePopper();
|
||||
|
||||
const tip = this._getTipElement();
|
||||
|
||||
@@ -237,12 +230,7 @@
|
||||
EventHandler__default.default.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));
|
||||
}
|
||||
|
||||
if (this._popper) {
|
||||
this._popper.update();
|
||||
} else {
|
||||
this._popper = this._createPopper(tip);
|
||||
}
|
||||
|
||||
this._popper = this._createPopper(tip);
|
||||
tip.classList.add(CLASS_NAME_SHOW); // If this is a touch-enabled device we add extra
|
||||
// empty mouseover listeners to the body's immediate children;
|
||||
// only needed because of broken event delegation on iOS
|
||||
@@ -300,14 +288,12 @@
|
||||
}
|
||||
|
||||
if (!this._isHovered) {
|
||||
tip.remove();
|
||||
this._disposePopper();
|
||||
}
|
||||
|
||||
this._element.removeAttribute('aria-describedby');
|
||||
|
||||
EventHandler__default.default.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN));
|
||||
|
||||
this._disposePopper();
|
||||
};
|
||||
|
||||
this._queueCallback(complete, this.tip, this._isAnimated());
|
||||
@@ -624,6 +610,11 @@
|
||||
|
||||
this._popper = null;
|
||||
}
|
||||
|
||||
if (this.tip) {
|
||||
this.tip.remove();
|
||||
this.tip = null;
|
||||
}
|
||||
} // Static
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user