fix: autocomplete input not showing available options
fix: remove log
This commit is contained in:
parent
17e1da61f3
commit
175a98d50f
4 changed files with 28 additions and 6 deletions
|
|
@ -49,8 +49,10 @@ const Autocomplete = ({
|
|||
return multiple ? value : [value]
|
||||
}
|
||||
|
||||
const filter = (array, input) =>
|
||||
sort(array, input, { keys: [valueProp, labelProp] })
|
||||
const filter = (array, input) => {
|
||||
if (!input) return array
|
||||
return sort(array, input, { keys: [valueProp, labelProp] })
|
||||
}
|
||||
|
||||
const filterOptions = (array, { inputValue }) =>
|
||||
R.union(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue