Skip to content

Commit

Permalink
Fix Dropdown component active state
Browse files Browse the repository at this point in the history
  • Loading branch information
AmsterGet authored Nov 23, 2023
1 parent 8e94657 commit 577768e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const Dropdown: FC<DropdownProps> = ({
item: option,
index,
})}
selected={option.value === selectedItem?.value}
selected={option.value === (selectedItem?.value ?? selectedItem)}
option={option}
highlightHovered={highlightedIndex === index}
render={renderOption}
Expand Down

0 comments on commit 577768e

Please sign in to comment.