Skip to content

Commit 1f94104

Browse files
committed
fix(tooltip): null scope check in isOpen watch
The watch for the isOpen property from the model was not checking to see if the internal tooltip scope was still valid (null or undefined) before comparing the value to the tooltip scope isOpen property. Closes angular-ui#4697 Fixes angular-ui#4683
1 parent 1599cff commit 1f94104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/tooltip/tooltip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
368368
if (isOpenParse) {
369369
scope.$watch(isOpenParse, function(val) {
370370
/*jshint -W018 */
371-
if (!val === ttScope.isOpen) {
371+
if (ttScope && !val === ttScope.isOpen) {
372372
toggleTooltipBind();
373373
}
374374
/*jshint +W018 */

0 commit comments

Comments
 (0)