Skip to content

Commit

Permalink
ui-core: comboBox selected object is not highlighted in the suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Clara Ni <[email protected]>
  • Loading branch information
clarani committed Jan 10, 2025
1 parent 012452c commit bc393d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-core/src/components/inputs/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const ComboBox = <T,>({
key={`${getSuggestionLabel(suggestion)}-${index}`}
className={cx('suggestion-item', {
active: index === activeSuggestionIndex,
selected: value === suggestion,
selected: value && getSuggestionLabel(value) === getSuggestionLabel(suggestion),
small,
})}
onClick={() => selectSuggestion(index)}
Expand Down

0 comments on commit bc393d3

Please sign in to comment.