diff --git a/sandpack-react/src/components/CodeEditor/CodeMirror.tsx b/sandpack-react/src/components/CodeEditor/CodeMirror.tsx index 3379e07b..0992e5d2 100644 --- a/sandpack-react/src/components/CodeEditor/CodeMirror.tsx +++ b/sandpack-react/src/components/CodeEditor/CodeMirror.tsx @@ -283,7 +283,7 @@ export const CodeMirror = React.forwardRef( EditorView.updateListener.of((update) => { if (update.docChanged) { const newCode = update.state.doc.toString(); - console.log("change"); + setInternalCode(newCode); onCodeUpdate?.(newCode); }