fix(animations): ensure final state() styles are applied within @.disabled animations (#20267)

Closes #20266

PR Close #20267
This commit is contained in:
Matias Niemelä
2017-11-08 11:01:07 +01:00
committed by Jason Aden
parent a622e19df6
commit 20aafff092
2 changed files with 52 additions and 0 deletions

View File

@ -1047,6 +1047,7 @@ export class TransitionAnimationEngine {
// means that it is independent and therefore should be set for animation
if (subTimelines.has(element)) {
if (disabledElementsSet.has(element)) {
player.onDestroy(() => setStyles(element, instruction.toStyles));
skippedPlayers.push(player);
return;
}