Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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

Description

@ogrimator

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions