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: hidden cell blur on parent, not editorview (#2508)

Akshay Agrawalc3ae548448a6
diff --git a/frontend/src/components/editor/cell/code/cell-editor.tsx b/frontend/src/components/editor/cell/code/cell-editor.tsx
index 1616894084..434848cdfe 100644
--- a/frontend/src/components/editor/cell/code/cell-editor.tsx
+++ b/frontend/src/components/editor/cell/code/cell-editor.tsx
@@ -339,7 +339,7 @@ const CellEditorInternal = ({
if (hidden) {
updateCellConfig({ cellId, config: { hide_code: false } });
editorViewRef.current?.focus();
- editorViewRef.current?.contentDOM.addEventListener(
+ editorViewParentRef.current?.addEventListener(
"blur",
() => updateCellConfig({ cellId, config: { hide_code: true } }),
{ once: true },