From c80d75c4091699f7bfd8c07c02d35bde35cb16b2 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 5 Sep 2024 00:10:44 +0200 Subject: [PATCH] Using now the new AutocompleteTextField also in AddAccountDialog --- .../net/codinux/banking/ui/dialogs/AddAccountDialog.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/AddAccountDialog.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/AddAccountDialog.kt index 0117577..bf0975d 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/AddAccountDialog.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/AddAccountDialog.kt @@ -70,9 +70,9 @@ fun AddAccountDialog( ) { Column { - AutocompleteTextField( - onValueChange = { selectedBank = it }, - label = { Text("Bank (Suche mit Name, Bankleitzahl oder Ort)") }, + AutocompleteTextFieldNew( + onSelectedItemChanged = { selectedBank = it }, + label = "Bank (Suche mit Name, Bankleitzahl oder Ort)", getItemTitle = { bank -> bank.name }, fetchSuggestions = { query -> bankingService.findBanks(query) } ) { bank ->