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:

committed by
Miško Hevery

parent
ac58914b97
commit
5d68c830d2
@ -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]);
|
||||
|
Reference in New Issue
Block a user