Skip to content

Commit

Permalink
Added: On pressing Tab after writing a full-word dropdown disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
amitx13 committed Sep 11, 2024
1 parent eb040fc commit 27410d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MnemonicPhraseInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export default function MnemonicPhraseInput({
const matched = MNEMONIC_WORDS.filter((word) => word.startsWith(value))
if (matched.length === 1 && value === matched[0]) {
e.preventDefault()
setShowDropdown(null)
focusNextInput(wordIndex + 1)
}
}
Expand Down

0 comments on commit 27410d9

Please sign in to comment.