https://kotlinlang.org logo
a

Archie

03/04/2021, 10:12 AM
Hi, I was wondering if anyone else encountered this issue. I have a
TextField
inside a
LazyColumn
. If I focus on the
Textfield
(which naturally opens the
SoftKeyboard
) and scroll to the point where the focused TextField isn't in the screen, it throws an error :
Try to begin a session [IME_SESSION] whose parent [INPUT_VIEW_SESSION] hasn't begun
May I ask for some advice?
Hi @Adam Powell, may I ask for your opinion? Is this a bug or is it not recommended to place a
TextField
inside
LazyColumn
?
🐛 1
d

Deepak Gahlot

03/04/2021, 11:13 AM
I faced an issue with the TextField in the DialogBox. So whenever the TextField had focus and the dialog dismissed the app was crashing. It is not related to this workflow, but try to remove the focus from the TextField when u scroll.
a

Archie

03/04/2021, 11:36 AM
Hi @Deepak Gahlot, Thanks for the feedback. I did try doing that but the problem is that I have multiple TextField in the LazyColumn and when they are focused the LazyColumn scrolls to show the TextField. By doing "remove the focus from the TextField when u scroll", it accidentally dimiss the Softkeyboard even when its not supposed to.
3 Views