feat: focus input after select suggestion change
This commit is contained in:
parent
8de87c68c8
commit
0777a599ec
|
@ -21,6 +21,10 @@ const AutocompleteInput = ({ index }: AutocompleteInputProps) => {
|
|||
}, [word])
|
||||
|
||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
if (!isFocused) {
|
||||
handleInputFocus()
|
||||
}
|
||||
|
||||
const value = e.target.value
|
||||
const mnemonic = value.trim().split(' ')
|
||||
const mnemonicLength = mnemonic.length
|
||||
|
|
Loading…
Reference in New Issue