Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(ui): control for more specific onClick actions in table with peek view (#6086)

marliessophie917516fa914d
diff --git a/web/src/components/star-toggle.tsx b/web/src/components/star-toggle.tsx
index e18f78f939..0e3a500a12 100644
--- a/web/src/components/star-toggle.tsx
+++ b/web/src/components/star-toggle.tsx
@@ -31,6 +31,7 @@ export function StarToggle({
}}
disabled={disabled}
loading={isLoading}
+ aria-label="bookmark"
>
<StarIcon
className="h-4 w-4"
diff --git a/web/src/components/table/peek.tsx b/web/src/components/table/peek.tsx
index 84edef01cc..0859c69d70 100644
--- a/web/src/components/table/peek.tsx
+++ b/web/src/components/table/peek.tsx
@@ -39,11 +39,11 @@ export function TablePeekView<TData>({
<Sheet
open={!!selectedRowId}
onOpenChange={(open) => {
- // Ignore close events from checkbox or button clicks to ensure integrity of table row actions
+ // Ignore close events from checkbox or bookmark star toggle clicks to ensure integrity of table row actions
if (
!open &&
(document.activeElement?.closest('[role="checkbox"]') ||
- document.activeElement?.closest("button"))
+ document.activeElement?.closest('[aria-label="bookmark"]'))
) {
return;
}