authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 19:27:32-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-02 20:31:39-08:00
log2f6cac0cf0c7424236e3aaf04c2485e72fe1fe5c
tree205a6468cbab174c6c8731c759a2bba11a361c63
parent5c26df3a4fe5ff0141e771ed7a26a5abd23185b5

no forwardref needed


1 files changed, 14 insertions(+), 17 deletions(-)

apps/web/src/components/ui/combobox.tsx+14-17
...@@ -260,23 +260,20 @@ function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {...@@ -260,23 +260,20 @@ function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
260 return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;260 return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;
261}261}
262262
263const ComboboxList = React.forwardRef<HTMLDivElement, ComboboxPrimitive.List.Props>(263function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
264 function ComboboxList({ className, ...props }, ref) {264 return (
265 return (265 <ScrollArea scrollbarGutter scrollFade>
266 <ScrollArea scrollbarGutter scrollFade>266 <ComboboxPrimitive.List
267 <ComboboxPrimitive.List267 className={cn(
268 className={cn(268 "not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",
269 "not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",269 className,
270 className,270 )}
271 )}271 data-slot="combobox-list"
272 data-slot="combobox-list"272 {...props}
273 ref={ref}273 />
274 {...props}274 </ScrollArea>
275 />275 );
276 </ScrollArea>276}
277 );
278 },
279);
280277
281function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {278function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
282 return <ComboboxPrimitive.Clear className={className} data-slot="combobox-clear" {...props} />;279 return <ComboboxPrimitive.Clear className={className} data-slot="combobox-clear" {...props} />;