From 55333833ec260a5c9eefa05690086de768d6970c Mon Sep 17 00:00:00 2001 From: Alex Southwell Date: Sun, 6 Sep 2026 17:22:21 +1000 Subject: [PATCH] fix(web): name combobox chip removal targets (#10127) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- apps/web/src/components/ui/combobox.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsx index e2253100d2d8c8d68094f4955547d4e54ddd0c65..d9f09690331d32d3fdfb217ac5ecae8368b954e3 100644 --- a/apps/web/src/components/ui/combobox.tsx +++ b/apps/web/src/components/ui/combobox.tsx @@ -352,27 +352,37 @@ function ComboboxChips({ } function ComboboxChip({ children, ...props }: ComboboxPrimitive.Chip.Props) { + const labelId = React.useId(); + return ( - {children} - + {children} + ); } -function ComboboxChipRemove(props: ComboboxPrimitive.ChipRemove.Props) { +function ComboboxChipRemove({ + labelId, + ...props +}: ComboboxPrimitive.ChipRemove.Props & { labelId: string }) { + const removeLabelId = `${labelId}-remove`; + return ( - + + Remove + + ); } -- 2.54.0