diff --git a/package.json b/package.json index 76bd0ab..2acee11 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "type": "git", "url": "https://github.com/bfanger/svelte-preprocess-react.git" }, - "version": "0.12.0", + "version": "0.13.0", "license": "MIT", "type": "module", "scripts": { diff --git a/src/lib/sveltify.ts b/src/lib/sveltify.ts index 4ca6bf2..2040319 100644 --- a/src/lib/sveltify.ts +++ b/src/lib/sveltify.ts @@ -82,13 +82,14 @@ export default function sveltify

( props, [ React.createElement("svelte-slot", { + key: "svelte-slot", style: { display: "contents" }, dangerouslySetInnerHTML: { __html: html }, }), ...current.map((child, i) => React.createElement( `ssr-portal${i}`, - null, + { key: `ssr-portal${i}` }, React.createElement(child.reactComponent, child.props) ) ),