fix(ui): render select icon as child

This commit is contained in:
Maofeng
2026-09-20 18:32:14 +08:00
parent a6f5f0b649
commit 71c416caab
+3 -5
View File
@@ -51,11 +51,9 @@ function SelectTrigger({
{...props}
>
{children}
<SelectPrimitive.Icon
render={
<ChevronDownIcon className="pointer-events-none size-4 text-muted-foreground" />
}
/>
<SelectPrimitive.Icon>
<ChevronDownIcon className="pointer-events-none size-4 text-muted-foreground" />
</SelectPrimitive.Icon>
</SelectPrimitive.Trigger>
)
}