Skip to content

Commit

Permalink
fix: prevent focus (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick authored Oct 13, 2024
1 parent c4a9990 commit 01b075c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/editor/SortableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand All @@ -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}
Expand Down

0 comments on commit 01b075c

Please sign in to comment.