We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5808df7 commit ab5fc9eCopy full SHA for ab5fc9e
1 file changed
src/component/Base.mjs
@@ -2041,9 +2041,9 @@ class Component extends Base {
2041
let config = super.mergeConfig(...args),
2042
vdom = config.vdom || config._vdom || {};
2043
2044
- // It should be possible to modify the vdom on instance level.
+ // It should be possible to modify root level vdom attributes on instance level.
2045
// 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));
+ this._vdom = Neo.clone({...vdom, ...this._vdom || {}}, true);
2047
2048
delete config._vdom;
2049
delete config.vdom;
0 commit comments