fix: autocomplete input not showing available options

fix: remove log
This commit is contained in:
Sérgio Salgado 2021-02-10 18:49:57 +00:00 committed by Josh Harvey
parent 17e1da61f3
commit 175a98d50f
4 changed files with 28 additions and 6 deletions

View file

@ -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(