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

Tooltip is not closed when related element is disabled #2059

Closed
Myrmex opened this issue Apr 14, 2014 · 2 comments
Closed

Tooltip is not closed when related element is disabled #2059

Myrmex opened this issue Apr 14, 2014 · 2 comments

Comments

@Myrmex
Copy link

Myrmex commented Apr 14, 2014

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?

@Felby
Copy link

Felby commented May 2, 2014

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

@rvanbaalen
Copy link
Contributor

This is fixed in the latest UI Bootstrap 0.13.0

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants