fix(animations): ensure animations are disabled on the element containing the @.disabled flag (#18714)

Prior to fix this fix, @.disabled would only work to disable child
animations. Now it will also disable animations for the element that has
the @.disabled flag (which makes more sense).

PR Close #18714
This commit is contained in:
Matias Niemelä
2017-08-15 13:43:14 -07:00
committed by Miško Hevery
parent ac58914b97
commit 5d68c830d2
3 changed files with 9 additions and 8 deletions

View File

@ -817,6 +817,7 @@ export class TransitionAnimationEngine {
const disabledElementsSet = new Set<any>();
this.disabledNodes.forEach(node => {
disabledElementsSet.add(node);
const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);
for (let i = 0; i < nodesThatAreDisabled.length; i++) {
disabledElementsSet.add(nodesThatAreDisabled[i]);