fix(animations): only treat view removals as void state transitions (#15245)

Closes #15223

PR Close #15245
This commit is contained in:
Matias Niemelä
2017-03-17 10:24:21 -07:00
committed by Miško Hevery
parent 8415910375
commit c66437fc13
2 changed files with 84 additions and 2 deletions

View File

@ -106,8 +106,8 @@ export class DomAnimationEngine {
this._elementTriggerStates.set(element, lookupRef = {});
}
let oldValue = lookupRef[property] || 'void';
if (oldValue != value) {
let oldValue = lookupRef.hasOwnProperty(property) ? lookupRef[property] : 'void';
if (oldValue !== value) {
let instruction = trigger.matchTransition(oldValue, value);
if (!instruction) {
// we do this to make sure we always have an animation player so