change(ui) - filters autocomplete blur on pressing Enter key
This commit is contained in:
parent
641fae4ed0
commit
ded7d14231
1 changed files with 5 additions and 0 deletions
|
|
@ -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'}}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue