https://kotlinlang.org logo
#compose
Title
# compose
a

amar_1995

04/12/2020, 1:42 AM
I am trying to use TextField. In text field onBlur is not getting called. Am I doing somthing wrong. I am only using one text field.
Copy code
TextField(
    value = value,
    onValueChange = onValueChange,
    textStyle = editorStyle,
    imeAction = ImeAction.Search,
    keyboardType = keyboardType,
    onImeActionPerformed = {
        onSearchClick()
    },
    onFocus = {
        println("focus called >>>>")
        onSearchChanged(R.drawable.ic_baseline_arrow_back_24)
    },
    onBlur = {
        println("blur called >>>>")
    }
)
In above example
blur called >>>>
is never printed. Cursor is also not removed once it gain focus. In dev-05( I think) it was working fine but not now.
Currently I am using dev08
8 Views