From a92d6a1401828a6dac00253d1df7aa96dcd5675f Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 9 Sep 2024 22:54:07 +0200 Subject: [PATCH] Re-setting suggestionsFetchJob --- .../net/codinux/banking/ui/forms/AutocompleteTextField.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextField.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextField.kt index 367b895..fa9e087 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextField.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/forms/AutocompleteTextField.kt @@ -50,6 +50,8 @@ fun AutocompleteTextField( suggestions = fetchSuggestions(query) + suggestionsFetchJob = null + isLoading = false if (expanded == false && suggestions.isNotEmpty()) { expanded = true