Merge pull request #5592 from svilen-ivanov-kubit/svilen-ivanov-kubit-patch-1
Avoid modifying `node.measured` object, create copy instead
This commit is contained in:
@@ -125,9 +125,9 @@ function applyChange(change: any, element: any): any {
|
||||
|
||||
case 'dimensions': {
|
||||
if (typeof change.dimensions !== 'undefined') {
|
||||
element.measured ??= {};
|
||||
element.measured.width = change.dimensions.width;
|
||||
element.measured.height = change.dimensions.height;
|
||||
element.measured = {
|
||||
...change.dimensions,
|
||||
};
|
||||
|
||||
if (change.setAttributes) {
|
||||
if (change.setAttributes === true || change.setAttributes === 'width') {
|
||||
|
||||
Reference in New Issue
Block a user