From 59dc3e174db4f22deb484352b17f8e1ac07172cc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 29 Nov 2016 21:37:00 -0800 Subject: grunt --- js/dist/tooltip.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/dist/tooltip.js') diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js index 1de06f445..0ba14d6c7 100644 --- a/js/dist/tooltip.js +++ b/js/dist/tooltip.js @@ -187,6 +187,7 @@ var Tooltip = function ($) { $.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(); @@ -393,6 +394,10 @@ var Tooltip = function ($) { return _this3._leave(event); }); } + + $(_this3.element).closest('.modal').on('hide.bs.modal', function () { + return _this3.hide(); + }); }); if (this.config.selector) { -- cgit v1.2.3