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

Tooltip on button doesn't hide if button is disabled on click #3167

Closed
Hypercubed opened this issue Jan 8, 2015 · 1 comment
Closed

Tooltip on button doesn't hide if button is disabled on click #3167

Hypercubed opened this issue Jan 8, 2015 · 1 comment

Comments

@Hypercubed
Copy link
Contributor

Reopening #1926. If a tooltip is attached to a button that is disabled while the tooltip is displayed the hide trigger cannot fire, therefore the tooltip remains open. See this plunk: http://plnkr.co/edit/gjA46FQ8Ln74zgi8IMR2?p=preview

I propose adding the following to the tooltip directive:

attrs.$observe( 'disabled', function ( val ) {
  if (val && ttScope.isOpen ) {
    hide();
  }
});
@Hypercubed
Copy link
Contributor Author

Fix in PR #3169

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