From 818374af1ad69911ba37cd771f5981b2808df24d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 10 May 2022 11:56:41 -0400 Subject: [PATCH] fix(StatusSeedPhraseInput): autocomplete when word not alone in the list The problem was that if the clicked word (or tabbed) was not alone in the suggestion list, the done signal was not called. Now it is always called when clicking on using tab or enter. --- ui/StatusQ/src/StatusQ/Controls/StatusSeedPhraseInput.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusSeedPhraseInput.qml b/ui/StatusQ/src/StatusQ/Controls/StatusSeedPhraseInput.qml index ea6c8103a9..37793bd6e9 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusSeedPhraseInput.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusSeedPhraseInput.qml @@ -211,9 +211,11 @@ Item { } function completeWordFill(seedWord) { - seedWordInput.input.edit.text = seedWord.trim(); - // Changing the text of the input triggers the onTextChanged, thus signalling doneInsertingWord if the condition passes + let seedWordTrimmed = seedWord.trim(); + root.setWord(seedWordTrimmed); seedWordInput.input.edit.cursorPosition = seedWordInput.text.length; + seedSuggestionsList.model = 0; + root.doneInsertingWord(seedWordTrimmed); } clip: true