fix(ivy): ensure errors are thrown during checkNoChanges for style/class bindings (#33103)
Prior to this fix, all style/class bindings (e.g. `[style]` and `[class.foo]`) would quietly update a binding value if and when the current binding value changes during checkNoChanges. With this patch, all styling instructions will properly check to see if the value has changed during the second pass of detectChanges() if checkNoChanges is active. PR Close #33103
This commit is contained in:
@ -522,8 +522,11 @@ export type LStylingData = LView | (string | number | boolean | null)[];
|
||||
* of the key/value array that was used to populate the property/
|
||||
* value entries that take place in the remainder of the array.
|
||||
*/
|
||||
export interface StylingMapArray extends Array<{}|string|number|null> {
|
||||
[StylingMapArrayIndex.RawValuePosition]: {}|string|null;
|
||||
export interface StylingMapArray extends Array<{}|string|number|null|undefined> {
|
||||
/**
|
||||
* The last raw value used to generate the entries in the map.
|
||||
*/
|
||||
[StylingMapArrayIndex.RawValuePosition]: {}|string|number|null|undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user