aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index dbc9cf18c..2b659b885 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -224,6 +224,7 @@ const Tooltip = (($) => {
$.removeData(this.element, this.constructor.DATA_KEY)
$(this.element).off(this.constructor.EVENT_KEY)
+ $(this.element).closest('.modal').off('hide.bs.modal')
if (this.tip) {
$(this.tip).remove()
@@ -454,6 +455,11 @@ const Tooltip = (($) => {
(event) => this._leave(event)
)
}
+
+ $(this.element).closest('.modal').on(
+ 'hide.bs.modal',
+ () => this.hide()
+ )
})
if (this.config.selector) {