Skip to content

Commit

Permalink
fix: Update isOptionEqualToValue in order to fix wrong selected-v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
tklein1801 committed May 17, 2024
1 parent bc12e06 commit 6566802
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Base/Input/ReceiverAutocomplete.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export const ReceiverAutocomplete: React.FC<IReceiverAutocompleteProps> = ({
value={value}
onChange={onChange}
filterOptions={applyReceiverOptionsFilter}
// FIXME:
isOptionEqualToValue={(option, value) => option.value === value?.value || typeof value.value === 'string'}
isOptionEqualToValue={(option, value) => option.value == value.value && option.label == value.label}
defaultValue={defaultValue}
loadingText="Loading..."
loading={loading}
Expand Down

0 comments on commit 6566802

Please sign in to comment.