From 2dfe4828614229ba7eb4b20887325ea50948fdde Mon Sep 17 00:00:00 2001 From: Trezy Date: Mon, 20 Apr 2026 14:19:11 +0000 Subject: [PATCH] fix(dashboard): fix broken interactivity on collection combobox --- web/src/app/dashboard/backfill/page.tsx | 25 ++++++++++++++++++------- web/src/components/ui/combobox.tsx | 42 +++++++++++++++++++++--------------------- 2 file(s) changed, 39 insertion(s)(+), 28 deletion(s)(-) diff --git a/web/src/app/dashboard/backfill/page.tsx b/web/src/app/dashboard/backfill/page.tsx --- a/web/src/app/dashboard/backfill/page.tsx +++ b/web/src/app/dashboard/backfill/page.tsx @@ -174,7 +174,14 @@ - + { + const target = e.target as HTMLElement; + if (target.closest("[data-slot='combobox-item'], [data-slot='combobox-content']")) { + e.preventDefault(); + } + }} + > Create Backfill Job @@ -186,19 +193,23 @@
{error &&

{error}

}
- + + No matching lexicons. - No matching lexicons. - {recordLexicons.map((id) => ( - - {id} + {(item: string) => ( + + {item} - ))} + )} diff --git a/web/src/components/ui/combobox.tsx b/web/src/components/ui/combobox.tsx --- a/web/src/components/ui/combobox.tsx +++ b/web/src/components/ui/combobox.tsx @@ -102,28 +102,28 @@ Pick< ComboboxPrimitive.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor" >) { - return ( - - - - - + const content = ( + + + ) + + return {content} } function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) { -- tangled.sh