From 0777a599ecbb8b2965b15bef2116048985465af6 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Mon, 4 Sep 2023 13:27:45 +0300 Subject: [PATCH] feat: focus input after select suggestion change --- .../ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx index 686aca05..39b0486f 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/AutocompleteInput.tsx @@ -21,6 +21,10 @@ const AutocompleteInput = ({ index }: AutocompleteInputProps) => { }, [word]) const handleInputChange = (e: React.ChangeEvent) => { + if (!isFocused) { + handleInputFocus() + } + const value = e.target.value const mnemonic = value.trim().split(' ') const mnemonicLength = mnemonic.length