Skip to content

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

fix(trace-timeline): cannot select items other than the first 2 (#8939)

Nimar94124ac60c49
diff --git a/web/src/components/trace/TraceTimelineView.tsx b/web/src/components/trace/TraceTimelineView.tsx
index aa67f7a12d..e98278a72c 100644
--- a/web/src/components/trace/TraceTimelineView.tsx
+++ b/web/src/components/trace/TraceTimelineView.tsx
@@ -324,6 +324,7 @@ function TraceTreeItem({
key={`observation-${observation.id}`}
itemId={`observation-${observation.id}`}
onClick={(e) => {
+ e.stopPropagation();
const isIconClick = (e.target as HTMLElement).closest(
"svg.MuiSvgIcon-root",
);
@@ -642,6 +643,7 @@ export function TraceTimelineView({
"absolute left-3 top-1/2 z-10 -translate-y-1/2",
}}
onClick={(e) => {
+ e.stopPropagation();
const isIconClick = (e.target as HTMLElement).closest(
"svg.MuiSvgIcon-root",
);