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

Commit 7a6c8e7

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 7a6c8e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tooltip/tooltip.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ 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+
/*jshint -W018 */
383+
if (!val === ttScope.isOpen) {
383384
toggleTooltipBind();
384385
}
385386
});

0 commit comments

Comments
 (0)