bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tooltip is not closed when related element is disabled

Open Myrmex opened this issue 12 years ago • 2 comments

In my Angular app, when I place a tooltip on a button, it shows as expected; but if the button gets disabled (by the underlying controller) after being clicked, and the tooltip was being shown, the tooltip is not hidden and stays there forever. Here's a repro:

http://embed.plnkr.co/numlaAuLOxh3a03Z7O85/preview

Just hover the button to make the tooltip appear, and then click it. The button is disabled, and the tooltip stays there. How can I avoid this behavior and have my tips correctly hidden?

Myrmex avatar Apr 14 '14 16:04 Myrmex

Same issue here. Related un-resolved stackoverflow issue here: http://stackoverflow.com/questions/22988956/angularjs-bootstrap-ui-tooltip-not-hidden-when-button-is-disabled

Felby avatar May 02 '14 16:05 Felby

This is fixed in the latest UI Bootstrap 0.13.0

http://plnkr.co/edit/Na1vA4PnRJwU4qMkImnM?p=preview

rvanbaalen avatar May 19 '15 18:05 rvanbaalen