Skip to content

Commit 2d7d638

Browse files
author
Ben Grynhaus
committed
Fix setting properties or attributes on a ReactNode overriding others when value was undefined
1 parent c313495 commit 2d7d638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/core/src/lib/renderer/react-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class ReactNode {
109109

110110
setProperties(properties: StringMap) {
111111
this.setRenderPending();
112-
Object.assign(this.props, properties);
112+
Object.assign(this._props, removeUndefinedProperties(properties));
113113
}
114114

115115
removeProperty(name: string, childName?: string) {

0 commit comments

Comments
 (0)