diff --git a/packages/interface/src/components/explorer/VirtualizedList.tsx b/packages/interface/src/components/explorer/VirtualizedList.tsx index c121515b1..38e79e811 100644 --- a/packages/interface/src/components/explorer/VirtualizedList.tsx +++ b/packages/interface/src/components/explorer/VirtualizedList.tsx @@ -117,7 +117,13 @@ export const VirtualizedList = memo(({ data, context, onScroll }: Props) => { return (
-
+
{ + getExplorerStore().selectedRowIndex = -1; + }} + >
{ - getExplorerStore().selectedRowIndex = isSelected ? -1 : index; - }, [isSelected, index]); + const onClick = useCallback( + (e: React.MouseEvent) => { + e.stopPropagation(); + + getExplorerStore().selectedRowIndex = isSelected ? -1 : index; + }, + [isSelected, index] + ); const ItemComponent = kind === 'list' ? FileRow : FileItem;