mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-19 07:51:02 +00:00
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])
|
}, [word])
|
||||||
|
|
||||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
|
if (!isFocused) {
|
||||||
|
handleInputFocus()
|
||||||
|
}
|
||||||
|
|
||||||
const value = e.target.value
|
const value = e.target.value
|
||||||
const mnemonic = value.trim().split(' ')
|
const mnemonic = value.trim().split(' ')
|
||||||
const mnemonicLength = mnemonic.length
|
const mnemonicLength = mnemonic.length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user