diff --git a/sandbox/pages/StatusInputPage.qml b/sandbox/pages/StatusInputPage.qml index 2a8b2603..4a6ddffc 100644 --- a/sandbox/pages/StatusInputPage.qml +++ b/sandbox/pages/StatusInputPage.qml @@ -69,19 +69,34 @@ Column { textEdit.input.anchors.leftMargin: 16 textEdit.input.anchors.rightMargin: 16 textEdit.input.anchors.topMargin: 11 - textEdit.label: "Input with drop down selection list" + textEdit.label: "Input with drop down selection list" + (insertedWord ? ` (${insertedWord})` : "") leftComponentText: "1" inputList: ListModel { + ListElement { + seedWord: "add" + } + ListElement { + seedWord: "address" + } ListElement { seedWord: "panda" } ListElement { seedWord: "posible" } + ListElement { + seedWord: "win" + } + ListElement { + seedWord: "wine" + } ListElement { seedWord: "wing" } } + + property string insertedWord: "" + onDoneInsertingWord: insertedWord = word } } diff --git a/src/StatusQ/Controls/StatusSeedPhraseInput.qml b/src/StatusQ/Controls/StatusSeedPhraseInput.qml index 063f5665..642d4b94 100644 --- a/src/StatusQ/Controls/StatusSeedPhraseInput.qml +++ b/src/StatusQ/Controls/StatusSeedPhraseInput.qml @@ -99,7 +99,6 @@ Item { signal editClicked() function setWord(word) { - seedWordInput.ignoreTextChange = true seedWordInput.input.edit.text = word } @@ -110,9 +109,8 @@ Item { } StatusInput { - property bool ignoreTextChange: false - id: seedWordInput + implicitWidth: parent.width input.leftComponent: StatusBaseText { rightPadding: 6 @@ -123,10 +121,6 @@ Item { } input.acceptReturn: true onTextChanged: { - if (ignoreTextChange) { - ignoreTextChange = false - return - } filteredList.clear(); let textToCheck = text.trim() if (textToCheck !== "") {