diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextFieldNew.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextFieldNew.kt index 6eeb3e3..4568722 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextFieldNew.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextFieldNew.kt @@ -39,8 +39,6 @@ fun AutocompleteTextFieldNew( var suggestionsFetchJob: Job? = null val textFieldFocus = remember { FocusRequester() } - val keyboardController = LocalSoftwareKeyboardController.current - val interactionSource = remember { MutableInteractionSource() } val coroutineScope = rememberCoroutineScope() @@ -57,11 +55,6 @@ fun AutocompleteTextFieldNew( if (expanded == false && suggestions.isNotEmpty()) { expanded = true } - - // Delay to ensure menu is fully displayed before requesting focus - delay(100) - textFieldFocus.requestFocus() // Request focus back to TextField - keyboardController?.show() } } @@ -86,7 +79,6 @@ fun AutocompleteTextFieldNew( fetchSuggestionsAsync() } }, - interactionSource = interactionSource, label = { Text(label) }, maxLines = 1, trailingIcon = {