Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(frontend): suppress touch text-selection on rows with a context menu

Sergey Kozyrenkod08295610afe
diff --git a/frontend/src/components/ui/data-table.tsx b/frontend/src/components/ui/data-table.tsx
index 40df067e..b169a584 100644
--- a/frontend/src/components/ui/data-table.tsx
+++ b/frontend/src/components/ui/data-table.tsx
@@ -705,6 +705,8 @@ function DataTable<TData, TValue = unknown>({
className={cn(
'group hover:bg-muted/50 data-[state=open]:bg-muted/50 has-[[data-state=open]]:bg-muted/50',
isRowInteractive && 'cursor-pointer',
+ contextMenuContent &&
+ 'pointer-coarse:select-none pointer-coarse:[-webkit-touch-callout:none]',
)}
{...(row.getIsSelected() ? { 'data-state': 'selected' } : {})}
onClick={() => handleRowClick(row)}