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 ->