Skip to content

Commit

Permalink
fix: fix resource selector is not clearable
Browse files Browse the repository at this point in the history
Fixes #2313
  • Loading branch information
mainawycliffe authored and moshloop committed Oct 10, 2024
1 parent 866b0c5 commit 4de372c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,15 @@ export default function FormikResourceSelectorDropdown({
}
return "Start typing to search";
}}
isClearable
value={value}
onChange={(value: any) => {
field.onChange({
target: {
name: field.name,
value: Array.isArray(value)
? value.map((item) => item.value)
: value.value
: value?.value
}
});
}}
Expand Down

0 comments on commit 4de372c

Please sign in to comment.