From 677229e8c46520fec76156c5acfa351bb0b2cc4a Mon Sep 17 00:00:00 2001 From: VitalyVoroshilov Date: Mon, 6 Oct 2014 15:10:17 +0400 Subject: [PATCH] Update ui-bootstrap-tpls.js Fix to issue https://github.com/angular-ui/bootstrap/issues/2785. --- ui-bootstrap-tpls.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui-bootstrap-tpls.js b/ui-bootstrap-tpls.js index 260c276..50431d0 100644 --- a/ui-bootstrap-tpls.js +++ b/ui-bootstrap-tpls.js @@ -2576,7 +2576,10 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap // Show the tooltip popup element. function show() { - popupTimeout = null; + if ( popupTimeout ) { + $timeout.cancel( popupTimeout ); + popupTimeout = null; + } // If there is a pending remove transition, we must cancel it, lest the // tooltip be mysteriously removed.