From 0ac9c7155d63637bacef36d453cc8171f40b695c Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 26 Sep 2024 06:39:23 +0200 Subject: [PATCH] Raised min text length for search to make it possible to hide autocomplete (TransferMoneyDialog is very buggy on iOS) --- .../net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt index c9582a3..e2eb03f 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt @@ -229,7 +229,7 @@ fun TransferMoneyDialog( "Verwendungszweck (optional)", paymentReference, dropdownMaxHeight = 175.dp, // when showing more items than on Android autocomplete dropdown covers soft keybaord - minTextLengthForSearch = 0, + minTextLengthForSearch = 1, getItemTitle = { suggestion -> suggestion.reference }, onEnteredTextChanged = { paymentReference = it }, onSelectedItemChanged = { paymentReference = it?.reference ?: "" },