Skip to content

Commit

Permalink
fix: handle lwc:inner-html during hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
jodarove committed Oct 22, 2021
1 parent a053482 commit 7dc1915
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/@lwc/engine-core/src/framework/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ const ElementHook: Hooks<VElement> = {

hydrateElmHook(vnode);

hydrateChildrenHook(vnode.elm.childNodes, vnode.children, vnode.owner);
const { context } = vnode.data;
const isDomManual = Boolean(context && context.lwc && context.lwc.dom === 'manual');

if (!isDomManual) {
hydrateChildrenHook(vnode.elm.childNodes, vnode.children, vnode.owner);
}
},
};

Expand Down

0 comments on commit 7dc1915

Please sign in to comment.