summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-04-13 11:09:19 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-13 14:09:19 -0400
commit0f4c00575024b6ad20cfcdd1295113b72a4dfffc (patch)
treeada66b4c3312d56652d6c9f2b0dfb50cef150882 /packages/integrations/preact/src
parent500ee802ac022aca6020ae1c5f28f59e024b6e40 (diff)
downloadastro-0f4c00575024b6ad20cfcdd1295113b72a4dfffc.tar.gz
astro-0f4c00575024b6ad20cfcdd1295113b72a4dfffc.tar.zst
astro-0f4c00575024b6ad20cfcdd1295113b72a4dfffc.zip
[ci] update lockfile (#6837)
* [ci] update lockfile * Fix type errors * Fix zod version * updated lockfile * fix tests --------- Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Diffstat (limited to 'packages/integrations/preact/src')
-rw-r--r--packages/integrations/preact/src/client.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/integrations/preact/src/client.ts b/packages/integrations/preact/src/client.ts
index 138cb01aa..9ef6b2caf 100644
--- a/packages/integrations/preact/src/client.ts
+++ b/packages/integrations/preact/src/client.ts
@@ -35,13 +35,15 @@ export default (element: HTMLElement) =>
return h(element.localName, attrs, children);
}
+ let parent = element.parentNode as Element;
+
render(
h(
Wrapper,
null,
h(Component, props, children != null ? h(StaticHtml, { value: children }) : children)
),
- element.parentNode!,
+ parent,
element
);
};