Skip to content

Commit e99e653

Browse files
committed
refactor: enable * states
1 parent 781b88c commit e99e653

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

+2-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function setStylesOverride(element: NgView, styles: ɵStyleData) {
4646

4747
Object.keys(styles).forEach(prop => {
4848
const camelCaseProp = dashCaseToCamelCase(prop);
49-
element.style[camelCaseProp] = styles[prop];
49+
element.style[camelCaseProp] = styles[camelCaseProp];
5050
});
5151
}
5252

@@ -428,13 +428,7 @@ function cloakAndComputeStyles(
428428
elementPropsMap.forEach((props: Set<string>, element: any) => {
429429
const styles: ɵStyleData = {};
430430
props.forEach(prop => {
431-
const value = styles[prop] = driver.computeStyle(element, prop, defaultStyle);
432-
433-
// there is no easy way to detect this because a sub element could be removed
434-
// by a parent animation element being detached.
435-
if (!value || value.length === 0) {
436-
element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;
437-
}
431+
styles[prop] = driver.computeStyle(element, prop, defaultStyle);
438432
});
439433
valuesMap.set(element, styles);
440434
});

0 commit comments

Comments
 (0)