Skip to content

Commit 00e541b

Browse files
committed
chore: bump [Intent UI](https://intentui.com/) io
1 parent 1d680b3 commit 00e541b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/ui/dropdown.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ const DropdownSection = <T extends object>({ className, ...props }: DropdownSect
7272
type DropdownItemProps = ListBoxItemProps
7373

7474
const DropdownItem = ({ className, ...props }: DropdownItemProps) => {
75+
const textValue =
76+
props.textValue || (typeof props.children === "string" ? props.children : undefined)
7577
return (
7678
<ListBoxItemPrimitive
77-
textValue={typeof props.children === "string" ? props.children : props.textValue}
79+
textValue={textValue}
7880
className={composeRenderProps(className, (className, renderProps) =>
7981
dropdownItemStyles({ ...renderProps, className }),
8082
)}

0 commit comments

Comments
 (0)