Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit bde836c

Browse files
committed
manually fire change if not watcher is present
1 parent 1e0d5f6 commit bde836c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/tooltip/tooltip.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,15 @@ function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdThe
217217
$timeout(function() {
218218
scope.visible = setVisible.value;
219219
setVisible.queued = false;
220+
if (!scope.visibleWatcher)
221+
onVisibleChanged(scope.visible);
220222
}, scope.delay);
221223
} else {
222-
$mdUtil.nextTick(function() { scope.visible = false; });
224+
$mdUtil.nextTick(function() {
225+
scope.visible = false;
226+
if (!scope.visibleWatcher)
227+
onVisibleChanged(false);
228+
});
223229
}
224230
}
225231
}

0 commit comments

Comments
 (0)