Skip to content

Commit aa927c5

Browse files
committed
qml: Split amount and display updating for Bitcoin amount input
1 parent 7a0d186 commit aa927c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qml/pages/wallet/Send.qml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,11 @@ PageStack {
237237
placeholderText: "0.00000000"
238238
selectByMouse: true
239239
text: root.recipient.amount.display
240-
onEditingFinished: root.recipient.amount.display = text
240+
onTextEdited: root.recipient.amount.display = text
241+
onEditingFinished: root.recipient.amount.format()
241242
onActiveFocusChanged: {
242243
if (!activeFocus) {
243-
root.recipient.amount.display = text
244+
root.recipient.amount.format()
244245
}
245246
}
246247
}

0 commit comments

Comments
 (0)