-
Notifications
You must be signed in to change notification settings - Fork 25.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ng style doesnt remove old style when the model object changes #15457
Comments
it will work if you change prop order
|
Yeah, it's a |
Can reproduce @lakshaydulani please complete the full template next time you report an issue, thanks |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Current behaviour - If you assign an object to ngStyle in a div, ngStyle doesnt flush the style properties from the older object when it changes.
Expected/desired behavior - All the old object style should be flushed, and only the new object style properties should be applied.
Reproduction of the problem
http://plnkr.co/edit/ccS4gOZgdMqguwIcGRob?p=preview
In the above plunkr, click on first button (margin border background), then on second and then on third. Till this, it works fine.
But now click on second button (border background), margin property should be removed but it isn't.
I had earlier reported the same issue - #10315
The text was updated successfully, but these errors were encountered: