Skip to content

Commit ab5fc9e

Browse files
committed
v10 component.Base: mergeConfig() => smarter vdom aggregation #6989
1 parent 5808df7 commit ab5fc9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/component/Base.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,9 +2041,9 @@ class Component extends Base {
20412041
let config = super.mergeConfig(...args),
20422042
vdom = config.vdom || config._vdom || {};
20432043

2044-
// It should be possible to modify the vdom on instance level.
2044+
// It should be possible to modify root level vdom attributes on instance level.
20452045
// Note that vdom is not a real config, but implemented via get() & set().
2046-
this._vdom = Neo.merge(Neo.clone(this._vdom, true) || {}, Neo.clone(vdom, true));
2046+
this._vdom = Neo.clone({...vdom, ...this._vdom || {}}, true);
20472047

20482048
delete config._vdom;
20492049
delete config.vdom;

0 commit comments

Comments
 (0)