From 9740d8bb697dadf7dba1c271cce87d0d90c7ac62 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 3 Sep 2014 13:11:40 +0100 Subject: Fix tooltip occasionally not hiding when using a hide delay Fixes #14375. Closes #14519 by merging it. --- js/tooltip.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/tooltip.js') diff --git a/js/tooltip.js b/js/tooltip.js index 08d22971f..6af0e7d72 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -207,8 +207,11 @@ this.applyPlacement(calculatedOffset, placement) var complete = function () { + var prevHoverState = that.hoverState that.$element.trigger('shown.bs.' + that.type) that.hoverState = null + + if (prevHoverState == 'out') that.leave(that) } $.support.transition && this.$tip.hasClass('fade') ? -- cgit v1.2.3