Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-animate class stuck on element when using ng-route #7894

Closed
ogrimator opened this issue Jun 18, 2014 · 4 comments
Closed

ng-animate class stuck on element when using ng-route #7894

ogrimator opened this issue Jun 18, 2014 · 4 comments

Comments

@ogrimator
Copy link

I have two input elements and I'm hiding div on "ng-focus" and showing the same div on "ng-blur". Everything is working fine if I click on one input element and off that element again.
Problem is when I will click from one input element to another and then off so no input elements have focus. Variable is changing as predicted but element is not showing up because "ng-animate" class is stuck on that element and adding "ng-hide" class is not hiding it anymore.

To test click on one input then the other input and anywhere else, then back on any input, element will stay visible.
http://plnkr.co/edit/PjXyMatnPwYBZApInQkV?p=preview

This issue will not happen when the same script will not be using ng-route.

@rodyhaddad
Copy link
Contributor

Looks like a valid issue

cc @matsko

@airato
Copy link
Contributor

airato commented Jun 18, 2014

Yeah, there is a bug, fixed in #7784, waiting for merge

p.s. same behavior without ng-route http://plnkr.co/edit/9CASzQgTe2QIutkGm53J?p=preview

@matsko
Copy link
Contributor

matsko commented Jun 18, 2014

Ah perfect. Thanks @airato for checking that out. This will be merged in tomorrow morning.

@matsko
Copy link
Contributor

matsko commented Jun 23, 2014

OK the PR is ready. Here is a working demo:

http://plnkr.co/edit/5hanCozN8kodIKtW17ud?p=preview

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

Successfully merging a pull request may close this issue.

5 participants