We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4664b commit e185e20Copy full SHA for e185e20
src/components/preview.tsx
@@ -192,6 +192,7 @@ export const Preview: Component<Props> = (props) => {
192
193
onMount(() => {
194
iframe.srcdoc = html;
195
+ iframe.addEventListener('load', attachToIframe);
196
});
197
198
return (
@@ -204,7 +205,6 @@ export const Preview: Component<Props> = (props) => {
204
205
title="Solid REPL"
206
class="overflow-auto p-2 w-full h-full dark:bg-other"
207
ref={iframe}
- onLoad={attachToIframe}
208
// @ts-ignore
209
sandbox="allow-popups-to-escape-sandbox allow-scripts allow-popups allow-forms allow-pointer-lock allow-top-navigation allow-modals allow-same-origin"
210
></iframe>
0 commit comments