When switching focus (by tapping) between 2 `Basic...
# compose
j
When switching focus (by tapping) between 2 `BasicTextField`s (which both have
keyboardType = KeyboardType.Number
set) I can see the on screen keyboard briefly switching back to
KeyboardType.Text
and then re-switch to
KeyboardType.Number
. It doesn’t happens always. Please see video. Any idea on how to avoid this unnecessary keyboard “flickering”?
Happens when switching composables. If you press back and open the same one, it wont happen. That was my conclusion but i didnt check if it is fixed
j
I'm not sure it's the same bug: that bug talks about different text fields and moving them in and out of the composition. In this case the text fields never leave the composition. It is only the focus that changes.
m
Oh you right i misred the screen. Well, use a single textfield and use transformers to add the unit - it should skip the bug.
1
🙏 1
r
@julioromano i just ran into the same issue - have you found a solution when using 2 textfields?
j
Unfortunately not, I had to abandon that approach and change the UI.
r