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

Commit 01b9624

Browse files
committed
fix(tooltip): check for ttScope in $$postDigest
In the tooltip $$postDigest function a check is done on ttScope.isOpen but ttScope may have been set to null in the scope.$on('$destroy'...) function. Added a check to make sure ttScope is defined and not null. Closes #4555 Fixes #4552
1 parent c9ab5f6 commit 01b9624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tooltip/tooltip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
374374
repositionScheduled = true;
375375
tooltipLinkedScope.$$postDigest(function() {
376376
repositionScheduled = false;
377-
if (ttScope.isOpen) {
377+
if (ttScope && ttScope.isOpen) {
378378
positionTooltip();
379379
}
380380
});

0 commit comments

Comments
 (0)