fix(ivy): ensure select(n)
instructions are always generated around style/class bindings (#30311)
Prior to this patch, the `select(n)` instruction would only be generated when property bindings are encountered which meant that styling-related bindings were skipped. This patch ensures that all styling-related bindings (i.e. class and style bindings) are always prepended with a `select()` instruction prior to being generated in AOT. PR Close #30311
This commit is contained in:

committed by
Kara Erickson

parent
bd37622050
commit
345a3cd9aa
@ -506,6 +506,7 @@ describe('compiler compliance', () => {
|
||||
$r3$.ɵɵelementEnd();
|
||||
}
|
||||
if (rf & 2) {
|
||||
$r3$.ɵɵselect(0);
|
||||
$r3$.ɵɵelementStyleProp(0, 0, ctx.color);
|
||||
$r3$.ɵɵelementClassProp(0, 0, ctx.error);
|
||||
$r3$.ɵɵelementStylingApply(0);
|
||||
|
Reference in New Issue
Block a user