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) {
260260 return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />;
261261}
262262
263const 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);
263function 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
281278function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
282279 return <ComboboxPrimitive.Clear className={className} data-slot="combobox-clear" {...props} />;