mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 21:21:19 +10:00
Fix: prevent flash of default predictions when selecting by enter
This commit is contained in:
parent
3a7c790fe7
commit
e2b8211148
1 changed files with 2 additions and 0 deletions
|
|
@ -232,9 +232,11 @@ class LocationAutocompleteInputImpl extends Component {
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.selectItemIfNoneSelected();
|
||||
this.input.blur();
|
||||
}
|
||||
} else if (e.keyCode === KEY_CODE_TAB) {
|
||||
this.selectItemIfNoneSelected();
|
||||
this.input.blur();
|
||||
} else if (e.keyCode === KEY_CODE_ESC && this.input) {
|
||||
this.input.blur();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue