Skip to content

Commit

Permalink
fix #773
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Dec 6, 2023
1 parent 4128a66 commit 1081498
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/view/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ function Component(options) { // eslint-disable-line
this.attach(hydrateWalker.target, hydrateWalker.current);
}
else {
this._toPhase('created');

if (aNode.Clazz || this.components[aNode.tagName]) {
if (!aNode.Clazz && this.attrs && this.inheritAttrs) {
aNode = aNodeMergeSourceAttrs(aNode, this.source);
Expand All @@ -338,12 +340,13 @@ function Component(options) { // eslint-disable-line
hydrateElementChildren(this, this.data, this);
}

this._toPhase('created');
this._attached();
this._toPhase('attached');
}
}
else if (this.el) {
this._toPhase('created');

if (aNode.Clazz || this.components[aNode.tagName]) {
if (!aNode.Clazz && this.attrs && this.inheritAttrs) {
aNode = aNodeMergeSourceAttrs(aNode, this.source);
Expand All @@ -356,7 +359,6 @@ function Component(options) { // eslint-disable-line
hydrateElementChildren(this, this.data, this);
}

this._toPhase('created');
this._attached();
this._toPhase('attached');
}
Expand Down

0 comments on commit 1081498

Please sign in to comment.