perf(ivy): apply static styles/classes directly to an element's style/className properties (#33364)

PR Close #33364
This commit is contained in:
Matias Niemelä
2019-10-23 12:58:20 -07:00
committed by Andrew Kushnir
parent 335854f6bc
commit 5607ad8c62
7 changed files with 85 additions and 24 deletions

View File

@ -441,9 +441,7 @@ function normalizeStylingDirectiveInputValue(
if (isClassBased) {
value = concatString(initialValue, forceClassesAsString(bindingValue));
} else {
value = concatString(
initialValue,
forceStylesAsString(bindingValue as{[key: string]: any} | null | undefined, true), ';');
value = concatString(initialValue, forceStylesAsString(bindingValue, true), ';');
}
}
return value;