I have a OTP (one time password) type of ui, where...
# compose
u
I have a OTP (one time password) type of ui, where on 4th digit the input gets autosent. Sending means networking request, which means the
TextField
gets
enabled = false
Disabling
TextField
makes the keyboard automatically hide. All is well if onscreen keyboard is used. However if I use HW keyboard, disabling the input makes the focus jump to next component, which in this case is toolbar back button, making it have white background, which look weird and unexpected I tried
focusManager.clearFocus
and even
force = true
, but nothing helps. What's the idiomatic way of killing focus completely? OR should it never disappear?
z
Did you figure this out? If clearFocus doesn't help, what does it do specifically?
u
No I didnt, clearFocus doesnt do anything, focus jumps to next thing it deems correct. I figured I cannot "destroy" focus