diff options
| author | Martijn Cuppens <[email protected]> | 2020-04-28 21:17:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-28 22:17:23 +0300 |
| commit | c8d68fbec79085780e83efc2ceb714a678bfe4f1 (patch) | |
| tree | bcff27dbeed7fa131e32d809b20d04a406bc3d18 /js/src/tooltip.js | |
| parent | 06c3c144b6c64be3cd779e8021d534048225f8a1 (diff) | |
| download | bootstrap-c8d68fbec79085780e83efc2ceb714a678bfe4f1.tar.xz bootstrap-c8d68fbec79085780e83efc2ceb714a678bfe4f1.zip | |
Drop closest from SelectorEngine (#30653)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 6b31acf49..b86ddb2c8 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -227,7 +227,7 @@ class Tooltip { Data.removeData(this.element, this.constructor.DATA_KEY) EventHandler.off(this.element, this.constructor.EVENT_KEY) - EventHandler.off(SelectorEngine.closest(this.element, `.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler) + EventHandler.off(this.element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler) if (this.tip) { this.tip.parentNode.removeChild(this.tip) @@ -556,7 +556,7 @@ class Tooltip { } } - EventHandler.on(SelectorEngine.closest(this.element, `.${CLASS_NAME_MODAL}`), + EventHandler.on(this.element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler ) |
