fix: PR fixes

This commit is contained in:
Taranto 2020-04-20 18:04:22 +01:00 committed by Josh Harvey
parent 1f6d272aa0
commit 21f3ee59ea
9 changed files with 52 additions and 43 deletions

View file

@ -36,7 +36,7 @@ const Autocomplete = ({
const value = getValue()
const iOnChange = (evt, value) => {
const innerOnChange = (evt, value) => {
if (!valueProp) return onChange(evt, value)
const rValue = multiple ? R.map(mapToValue)(value) : mapToValue(value)
@ -48,7 +48,7 @@ const Autocomplete = ({
options={options}
multiple={multiple}
value={value}
onChange={iOnChange}
onChange={innerOnChange}
getOptionLabel={getLabel}
forcePopupIcon={false}
filterOptions={createFilterOptions({ ignoreAccents: true, limit })}