change(ui) - filters autocomplete blur on pressing Enter key

This commit is contained in:
Shekar Siri 2022-07-04 09:18:34 +02:00
parent 641fae4ed0
commit ded7d14231

View file

@ -197,6 +197,11 @@ function FilterAutoComplete(props: Props) {
onFocus={onFocus}
onBlur={onBlur}
placeholder={placeholder}
onKeyDown={(e: any) => {
if (e.key === 'Enter') {
inputRef?.blur();
}
}}
/>
{loading && (
<div className="absolute top-0 right-0" style={{ marginTop: '5px', marginRight: !showCloseButton || (showCloseButton && !showOrButton) ? '34px' : '62px'}}>