Skip to content

Commit d89f8d8

Browse files
committed
fix(animations): ignore setting '*' property for styles
1 parent 8071257 commit d89f8d8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: nativescript-angular/animations/animation-engine.ts

-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ export class NativeScriptAnimationEngine extends AnimationEngine {
1919
delegate.removeChild(parent, element);
2020
}
2121
};
22-
2322
}
2423
}

Diff for: nativescript-angular/animations/transition-animation-engine.ts

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ function setStylesOverride(element: NgView, styles: ɵStyleData) {
3838
}
3939

4040
Object.keys(styles).forEach(prop => {
41+
if (styles[prop] === "*") {
42+
return;
43+
}
44+
4145
const camelCaseProp = dashCaseToCamelCase(prop);
4246
element.style[camelCaseProp] = styles[camelCaseProp];
4347
});

0 commit comments

Comments
 (0)