Skip to content

Commit 1ac9646

Browse files
committed
fix(tooltip): Tooltip on button doesn't hide if button is disabled on click
Fix for issue angular-ui#3167
1 parent eec68d8 commit 1ac9646

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tooltip/tooltip.js

+6
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
266266
hide();
267267
}
268268
});
269+
270+
attrs.$observe( 'disabled', function ( val ) {
271+
if (val && ttScope.isOpen ) {
272+
hide();
273+
}
274+
});
269275

270276
attrs.$observe( prefix+'Title', function ( val ) {
271277
ttScope.title = val;

0 commit comments

Comments
 (0)