no forwardref needed

This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-03-02 20:31:39 -08:00
1 parent 5c26df3a4f
commit 2f6cac0cf0
1 file changed
+14 -17
+14 -17
View File
@@ -260,23 +260,20 @@ function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;
}
const ComboboxList = React.forwardRef<HTMLDivElement, ComboboxPrimitive.List.Props>(
function ComboboxList({ className, ...props }, ref) {
return (
<ScrollArea scrollbarGutter scrollFade>
<ComboboxPrimitive.List
className={cn(
"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",
className,
)}
data-slot="combobox-list"
ref={ref}
{...props}
/>
</ScrollArea>
);
},
);
function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
return (
<ScrollArea scrollbarGutter scrollFade>
<ComboboxPrimitive.List
className={cn(
"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3",
className,
)}
data-slot="combobox-list"
{...props}
/>
</ScrollArea>
);
}
function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
return <ComboboxPrimitive.Clear className={className} data-slot="combobox-clear" {...props} />;