diff --git a/packages/toolpad-app/src/toolpad/AppEditor/CodeComponentEditor/index.tsx b/packages/toolpad-app/src/toolpad/AppEditor/CodeComponentEditor/index.tsx index b8e5d4d1abd..be5a79d79f8 100644 --- a/packages/toolpad-app/src/toolpad/AppEditor/CodeComponentEditor/index.tsx +++ b/packages/toolpad-app/src/toolpad/AppEditor/CodeComponentEditor/index.tsx @@ -151,10 +151,10 @@ function CodeComponentEditorContent({ codeComponentNode }: CodeComponentEditorCo return ( - + - + + + + {iframeLoaded && frameDocument ? ReactDOM.createPortal( @@ -184,21 +193,6 @@ function CodeComponentEditorContent({ codeComponentNode }: CodeComponentEditorCo frameDocument.body, ) : null} - - - ); }