Skip to content

Commit

Permalink
fix: temporarily show code (#2523)
Browse files Browse the repository at this point in the history
focusout bubbles, blur doesn't.
  • Loading branch information
akshayka authored Oct 7, 2024
1 parent 53a50c1 commit 700c6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/editor/cell/code/cell-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
);
Expand Down

0 comments on commit 700c6c7

Please sign in to comment.