Is there any way I can prevent onFocus trigger during the initial laying out of a composition?,
.onFocusChanged {
// initial pass triggers un-necessary onFocus callback with just `false` values
Log.e("TextFieldFocusChanged", "${it.isFocused} : ${it.hasFocus}")
}
I have found this Google issue tracker that seems related to such behavior, though the issue is not exactly related to an initial pass of a composition.
This thing can be solved by specifying some boolean flag depending on your needs, but handling it this way slowly introduces complex boolean evaluations depending on your use-case. Is there any way I can configure a TextField to prevent onFocus callback on initial pass?
Thank you in advance.