Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Fix tooltip issue #3557 #4408

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
}

function hideTooltipBind () {
hide();
if (!$rootScope.$$phase) {
$rootScope.$digest();
}
scope.$evalAsync(function () {
hide();
});
}

// Show the tooltip popup element.
Expand Down Expand Up @@ -243,9 +242,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
isOpenExp.assign(ttScope.origScope, ttScope.isOpen);
}

if (!$rootScope.$$phase) {
ttScope.$apply(); // digest required as $apply is not called
}
ttScope.$applyAsync(); // digest required as $apply is not called

positionTooltip();
}
Expand Down Expand Up @@ -284,7 +281,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
function createTooltip() {
// There can only be one tooltip element per directive shown at once.
if (tooltip) {
removeTooltip();
return;
}
tooltipLinkedScope = ttScope.$new();
tooltip = tooltipLinker(tooltipLinkedScope, function(tooltip) {
Expand Down