Fixed that loginName got focused even though no bank was selected
This commit is contained in:
parent
a257223543
commit
685adad6b3
|
@ -90,9 +90,7 @@ fun AddAccountDialog(
|
|||
showProgressIndicatorOnConfirmButton = isAddingAccount,
|
||||
useMoreThanPlatformDefaultWidthOnMobile = true,
|
||||
onDismiss = { dismiss() },
|
||||
onConfirm = {
|
||||
confirmCalled()
|
||||
}
|
||||
onConfirm = { confirmCalled() }
|
||||
) {
|
||||
Column {
|
||||
|
||||
|
@ -102,7 +100,9 @@ fun AddAccountDialog(
|
|||
onEnteredTextChanged = { enteredBankSearchQuery = it },
|
||||
onSelectedItemChanged = {
|
||||
selectedBank = it
|
||||
loginNameFocus.requestFocus()
|
||||
if (it != null) {
|
||||
loginNameFocus.requestFocus()
|
||||
}
|
||||
},
|
||||
getItemTitle = { bank -> bank.name },
|
||||
fetchSuggestions = { query -> bankingService.findBanks(query) }
|
||||
|
|
Loading…
Reference in New Issue