Kara Erickson
058aafcc0c
fix(ivy): fix styling context resolution for host bindings on containers (#28221)
Previous to this change, the isStylingContext() function was improperly returning true for LContainers because it used the presence of an array at index 2 to determine whether it was a styling context. Unfortunately, LContainers also contain arrays at index 2, so this would return a false positive. This led to other errors down the line because we would treat nodes with containers as if they already had styling contexts (even if they did not), so the proper initialization logic for styling contexts was not run. This commit fixes the isStylingContext() function to use LCONTAINER_LENGTH as a marker rather than the presence of an array, which in turn fixes host bindings to styles on nodes with containers. PR Close #28221
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%