Skip to content

Commit 6105e44

Browse files
no forwardref needed
1 parent 99b0f5d commit 6105e44

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

‎apps/web/src/components/ui/combobox.tsx‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -260,23 +260,20 @@ function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
260260
return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;
261261
}
262262

263-
const ComboboxList = React.forwardRef<HTMLDivElement, ComboboxPrimitive.List.Props>(
264-
function ComboboxList({ className, ...props }, ref) {
265-
return (
266-
<ScrollArea scrollbarGutter scrollFade>
267-
<ComboboxPrimitive.List
268-
className={cn(
269-
"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",
270-
className,
271-
)}
272-
data-slot="combobox-list"
273-
ref={ref}
274-
{...props}
275-
/>
276-
</ScrollArea>
277-
);
278-
},
279-
);
263+
function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
264+
return (
265+
<ScrollArea scrollbarGutter scrollFade>
266+
<ComboboxPrimitive.List
267+
className={cn(
268+
"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",
269+
className,
270+
)}
271+
data-slot="combobox-list"
272+
{...props}
273+
/>
274+
</ScrollArea>
275+
);
276+
}
280277

281278
function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
282279
return <ComboboxPrimitive.Clear className={className} data-slot="combobox-clear" {...props} />;

0 commit comments

Comments
 (0)