-
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
Animation backgroundColor from params resets after transition finishes #17505
Labels
Comments
matsko
added
regression
Indicates than the issue relates to something that worked in a previous version
and removed
regression
Indicates than the issue relates to something that worked in a previous version
labels
Jun 30, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
matsko
added a commit
to matsko/angular
that referenced
this issue
Aug 2, 2017
asnowwolf
pushed a commit
to asnowwolf/angular
that referenced
this issue
Aug 11, 2017
juleskremer
pushed a commit
to juleskremer/angular
that referenced
this issue
Aug 26, 2017
juleskremer
pushed a commit
to juleskremer/angular
that referenced
this issue
Aug 28, 2017
Was this ever solved? I am facing the same problem. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a ...
Current behavior
When delivering the animated value for backgroundColor via params the value gets reset after the transition finishes.
Both items are animated using the same Angular animation. The inactive yellow entry has the value fix inside the animation, the active red one gets the color passed in via params.
the yellow one keeps the background color (correct) while the red one looses it after the transition finishes (issue).
Expected behavior
the value set to backgroundColor stays after the transition finished.
Minimal reproduction of the problem with instructions
Markup parent component (host for the two entries): The color for active persons is passed in via @input "colorActive"
Markup child component (one single entry): the color of active persons is passed to the animation via "params" as "active" that is bound to the @input "colorActive"
Animation code: the backgroundColor for state active='true' is coming from params, the one for active='false' is fix.
What is the motivation / use case for changing the behavior?
I want to pass in the values for backgroundColor into the component so I can use it with different colors.
Please tell us about your environment
Angular version: 4.4.2
Browser:
For Tooling issues:
The text was updated successfully, but these errors were encountered: