-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationsfreq2: mediumtype: bug/fix
Milestone
Description
🐞 bug report
Affected Package
The issue is caused by package @angular/animations
Is this a regression?
Not sure.
Description
state('state1', style({ /*...*/ })),
state('state2', style({ /*...*/ })),
transition('state1 <=> state2', [
animate(500),
query(/* ... */)
])Does not work as expected. It does not transition to the states.
However, when swapping the animate() and query(), it does work:
state('state1', style({ /*...*/ })),
state('state2', style({ /*...*/ })),
transition('state1 <=> state2', [
query(/* ... */),
animate(500)
])🔬 Minimal Reproduction
https://stackblitz.com/edit/animation-bug
🌍 Your Environment
Angular Version:
Angular 7Anything else relevant?
See also: https://stackoverflow.com/questions/51726044/angular-transition-between-states-isnt-animated-correctly-if-animate-is-place/54631683#54631683
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: animationsfreq2: mediumtype: bug/fix