From ccf61f3f84249ae55e5b7b07e2189cdc590b8891 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:54:21 +0100 Subject: [PATCH] fix multi-select --- apps/client/src/ee/base/components/grid/grid-cell.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/ee/base/components/grid/grid-cell.tsx b/apps/client/src/ee/base/components/grid/grid-cell.tsx index 38de042f5..4d7a48504 100644 --- a/apps/client/src/ee/base/components/grid/grid-cell.tsx +++ b/apps/client/src/ee/base/components/grid/grid-cell.tsx @@ -94,21 +94,21 @@ export const GridCell = memo(function GridCell({ const handleMouseDown = useCallback( (e: React.MouseEvent) => { - if (!property || e.button !== 0) return; + if (!property || e.button !== 0 || isEditing) return; setFocusedCell({ rowId, propertyId: property.id }); }, - [property, rowId, setFocusedCell], + [property, rowId, setFocusedCell, isEditing], ); const handleClick = useCallback( (e: React.MouseEvent) => { - if (!property) return; + if (!property || isEditing) return; setFocusedCell({ rowId, propertyId: property.id }); (e.currentTarget.closest('[role="grid"]') as HTMLElement | null)?.focus({ preventScroll: true, }); }, - [property, rowId, setFocusedCell], + [property, rowId, setFocusedCell, isEditing], ); const cellReadOnly = property