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

Commit dd9de6f

Browse files
committed
fix(tooltip): do not toggle when isOpen is not boolean
- Coerce `isOpen` to boolean to do a proper comparison for firing `toggleTooltipBind`
1 parent 53f5f47 commit dd9de6f

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
@@ -379,7 +379,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
379379

380380
if (isOpenExp) {
381381
scope.$watch(isOpenExp, function(val) {
382-
if (val !== ttScope.isOpen) {
382+
if (!!val !== ttScope.isOpen) {
383383
toggleTooltipBind();
384384
}
385385
});

0 commit comments

Comments
 (0)