-
Notifications
You must be signed in to change notification settings - Fork 940
Closed
Labels
Description
In my setup with useCombobox hook, I get the option attributes via getItemProps() function. It returns 'aria-disabled' as a boolean, but 'aria-selected' is returned as string.
As a workaround currently i need to cast it back and forth, which is inconvenient:
{
...downshiftItemProps,
"aria-selected": (downshiftItemProps["aria-selected"] as unknown as string) === "true",
}I assume it origins from here, where it could simply be changed to
'aria-selected': index === latestState.highlightedIndex, instead of the template string.
downshift/src/hooks/useCombobox/index.js
Line 324 in 74ce0f5
| 'aria-selected': `${index === latestState.highlightedIndex}`, |
Reactions are currently unavailable