Update Select to work on an array of values; so long as values are contained in options array
This commit is contained in:
1 parent
92923789e5
commit
17e2680da8
2 files changed
+23
-16
No files matched your search
@@ -30,13 +30,13 @@ const InputMultiSelect = ({
|
||||
isSearchable={false}
|
||||
closeMenuOnSelect={false}
|
||||
hideSelectedOptions={false}
|
||||
onChange={(inputvalues, { action }) => {
|
||||
onChange={(selectedOptions, action) => {
|
||||
switch (action) {
|
||||
case 'select-option':
|
||||
case 'remove-value':
|
||||
case 'deselect-option':
|
||||
case 'clear':
|
||||
onChange(inputvalues);
|
||||
onChange(selectedOptions);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user