Skip to content

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

fix(frontend): keep table row highlighted while context menu or dropdown is open

Sergey Kozyrenko85a7ee281f1b
diff --git a/frontend/src/components/ui/data-table.tsx b/frontend/src/components/ui/data-table.tsx
index 34be3a5d..40df067e 100644
--- a/frontend/src/components/ui/data-table.tsx
+++ b/frontend/src/components/ui/data-table.tsx
@@ -702,8 +702,11 @@ function DataTable<TData, TValue = unknown>({
const tableRow = (
<TableRow
- className={cn('group hover:bg-muted/50', isRowInteractive && 'cursor-pointer')}
- data-state={row.getIsSelected() && 'selected'}
+ className={cn(
+ 'group hover:bg-muted/50 data-[state=open]:bg-muted/50 has-[[data-state=open]]:bg-muted/50',
+ isRowInteractive && 'cursor-pointer',
+ )}
+ {...(row.getIsSelected() ? { 'data-state': 'selected' } : {})}
onClick={() => handleRowClick(row)}
>
{row.getVisibleCells().map((cell) => (