From d3cb36e0884edcbe034daea517880bfae2753a19 Mon Sep 17 00:00:00 2001 From: Koustav Samaddar Date: Wed, 17 May 2023 20:26:32 +0530 Subject: [PATCH] fix on #4203 (#4414) --- components/lib/autocomplete/AutoComplete.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/lib/autocomplete/AutoComplete.js b/components/lib/autocomplete/AutoComplete.js index dfc20bf89a..615685a47b 100644 --- a/components/lib/autocomplete/AutoComplete.js +++ b/components/lib/autocomplete/AutoComplete.js @@ -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;