<Jetpack Compose: Textfield doenst lose focus on c...
# stackoverflow
u
Jetpack Compose: Textfield doenst lose focus on click outside of it I am trying to implement a searchbar in my Compose app. I have a textfield, which I want to lose focus of and hide the keyboard, when I click outside of the textfield. However, I can't figure out how to do it. I did try to do it this way, which I saw on github. However, i did some changes. The original solution used this part of code isHintDisplayed = it != FocusState.Active which seem to be deprecated. So I changed it to isHintDisplayed = it.isFocused != true which should...