Skip to content

Commit

Permalink
Restore is-selected CSS class
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Aug 7, 2024
1 parent cb6488d commit 202b055
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/autocomplete/autocompleter-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ function ListBox( {
disabled={ option.isDisabled }
className={ clsx(
'components-autocomplete__result',
className
className,
{
// Unused, for backwards compatibility.
'is-selected': index === selectedIndex,
}
) }
variant={ index === selectedIndex ? 'primary' : undefined }
onClick={ () => onSelect( option ) }
Expand Down

0 comments on commit 202b055

Please sign in to comment.