Skip to content

Commit

Permalink
fix on #4203 (#4414)
Browse files Browse the repository at this point in the history
  • Loading branch information
userkks authored May 17, 2023
1 parent 4e6cb7e commit d3cb36e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/lib/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ export const AutoComplete = React.memo(
};

const forceItemSelection = (event) => {
if (props.multiple) {
inputRef.current.value = '';

return;
}

const inputValue = event.target.value.trim();
const item = (props.suggestions || []).find((it) => {
const value = props.field ? ObjectUtils.resolveFieldData(it, props.field) : it;
Expand Down

0 comments on commit d3cb36e

Please sign in to comment.