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

ngAnimate overwrites ngStyle #4851

Closed
hswolff opened this issue Nov 9, 2013 · 1 comment
Closed

ngAnimate overwrites ngStyle #4851

hswolff opened this issue Nov 9, 2013 · 1 comment

Comments

@hswolff
Copy link

hswolff commented Nov 9, 2013

Ran into this after upgrading to 1.2.0 today (congrats btw :)).

Basic issue is that the new updates to ngAnimate to prevent elements from entering a stale state (by applying transition: none) is overwriting any styles applied on that element, rather than appending.

Have a look at this plunkr: http://plnkr.co/edit/PMxVTydp4b2tVt5ZhD09?p=preview

If you hover your mouse over the element it should remain black, however it turns back to red after a moment.

Seems ngAnimate overwrites the styles and then ngStyle is reapplied resulting in the red background appearing again.

@petebacondarwin
Copy link
Member

Moving discussion to #4869

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

No branches or pull requests

2 participants