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: prevent focus (#2618)

Myles Scolnick01b075c0eb3a
diff --git a/frontend/src/components/editor/SortableCell.tsx b/frontend/src/components/editor/SortableCell.tsx
index c514a71d77..b7d563c927 100644
--- a/frontend/src/components/editor/SortableCell.tsx
+++ b/frontend/src/components/editor/SortableCell.tsx
@@ -56,6 +56,7 @@ const SortableCellInternal = React.forwardRef(
<div
{...attributes}
{...listeners}
+ onMouseDown={Events.preventFocus}
data-testid="drag-button"
className="py-[1px] cursor-grab opacity-50 hover:opacity-100 hover-action hover:bg-muted rounded border border-transparent hover:border-border active:bg-accent"
>
@@ -73,7 +74,6 @@ const SortableCellInternal = React.forwardRef(
data-is-dragging={isDragging}
className={cn(props.className, isMoving && "is-moving")}
style={style}
- onMouseDown={Events.preventFocus}
>
<DragHandleSlot.Provider value={dragHandle}>
{props.children}