Skip to content

Commit a5fd44e

Browse files
committed
qml: Commit Recipient amount when active focus is lost
1 parent 72c3a9b commit a5fd44e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/qml/pages/wallet/Send.qml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ PageStack {
194194
selectByMouse: true
195195
text: root.recipient.amount.display
196196
onEditingFinished: root.recipient.amount.display = text
197+
onActiveFocusChanged: {
198+
if (!activeFocus) {
199+
root.recipient.amount.display = text
200+
}
201+
}
197202
}
198203
Item {
199204
width: unitLabel.width + flipIcon.width
@@ -202,10 +207,7 @@ PageStack {
202207
anchors.verticalCenter: parent.verticalCenter
203208
MouseArea {
204209
anchors.fill: parent
205-
onClicked: {
206-
root.recipient.amount.display = amountInput.text
207-
root.recipient.amount.flipUnit()
208-
}
210+
onClicked: root.recipient.amount.flipUnit()
209211
}
210212
CoreText {
211213
id: unitLabel

0 commit comments

Comments
 (0)