fix: PR fixes
This commit is contained in:
parent
1f6d272aa0
commit
21f3ee59ea
9 changed files with 52 additions and 43 deletions
|
|
@ -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 })}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue