mobile/UI: ensure that edited text is current

By removing focus from all input fields we can ensure that we have the
correct data reflected when saving an edited dive.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-12-30 14:02:10 -08:00
parent 0a88d9839c
commit 685403ff47

View file

@ -80,6 +80,7 @@ Item {
} }
function saveData() { function saveData() {
focusReset()
var state = diveDetailsPage.state var state = diveDetailsPage.state
diveDetailsPage.state = "view" // run the transition diveDetailsPage.state = "view" // run the transition
// join cylinder info from separate string into a list. // join cylinder info from separate string into a list.