fix(core): fix directive instantiation (#14715)
this issue was discovered in g3 and the patch was confirmed there. we should add a test as a followup up change.
This commit is contained in:
parent
436a179552
commit
3c9a46c231
|
@ -314,7 +314,7 @@ function createViewNodes(view: ViewData) {
|
|||
nodeData = <ProviderData>{instance};
|
||||
if (nodeDef.flags & NodeFlags.IsComponent) {
|
||||
const compView = asElementData(view, nodeDef.parent.index).componentView;
|
||||
initView(componentView, instance, instance);
|
||||
initView(compView, instance, instance);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue