Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: temporarily show code (#2523)

Akshay Agrawal700c6c7f3f17
diff --git a/frontend/src/components/editor/cell/code/cell-editor.tsx b/frontend/src/components/editor/cell/code/cell-editor.tsx
index c64d237944..db0bb695a2 100644
--- a/frontend/src/components/editor/cell/code/cell-editor.tsx
+++ b/frontend/src/components/editor/cell/code/cell-editor.tsx
@@ -340,7 +340,7 @@ const CellEditorInternal = ({
updateCellConfig({ cellId, config: { hide_code: false } });
editorViewRef.current?.focus();
editorViewParentRef.current?.addEventListener(
- "blur",
+ "focusout",
() => updateCellConfig({ cellId, config: { hide_code: true } }),
{ once: true },
);