We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
InvisibleNode
1 parent 6b6208b commit f646bd4Copy full SHA for f646bd4
nativescript-angular/animations/animation-driver.ts
@@ -7,7 +7,7 @@ import {
7
Keyframe,
8
dashCaseToCamelCase,
9
} from "./utils";
10
-import { NgView } from "../element-registry";
+import { NgView, InvisibleNode } from "../element-registry";
11
import { animationsLog as traceLog } from "../trace";
12
13
import { createSelector, SelectorCore } from "tns-core-modules/ui/styling/css-selector";
@@ -61,8 +61,13 @@ export class NativeScriptAnimationDriver implements AnimationDriver {
61
62
let results = [];
63
eachDescendant(element, child => {
64
+ if (child instanceof InvisibleNode) {
65
+ return true;
66
+ }
67
+
68
if (nsSelectors.some(s => s.match(child)) ||
69
classSelectors.some(s => this.hasClass(child, s))) {
70
71
results.push(child);
72
return multi;
73
}
0 commit comments