forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ivy): fix styling context resolution for host bindings on contain…
…ers (angular#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 angular#28221
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters