diff options
author | 2023-04-13 11:09:19 -0700 | |
---|---|---|
committer | 2023-04-13 14:09:19 -0400 | |
commit | 0f4c00575024b6ad20cfcdd1295113b72a4dfffc (patch) | |
tree | ada66b4c3312d56652d6c9f2b0dfb50cef150882 /packages/integrations/preact/src | |
parent | 500ee802ac022aca6020ae1c5f28f59e024b6e40 (diff) | |
download | astro-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.ts | 4 |
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 ); }; |