Hey people, how’s everyone doing. A quick compose/keyboard question: I have a screen with editable textfields and a close button. Pressing the close button goes back to the previous screen by calling
navController.popBackStack()
. It takes a good half a second for the keyboard to hide though after the new screen is already visible. Is that expected behaviour?
I also tried hiding the keyboard explicitly before navigating back, by calling
keyboardController?.hide()
first, but that’s even worse. The keyboard disappears immediately as expected, but then reappears for a split second when the new screen is visible, only to go away again (the new screen should never show the keyboard).
f
FunkyMuse
04/18/2023, 11:52 AM
tried in release build or only debug?
m
Maciej S
04/18/2023, 12:38 PM
Thanks for the suggestion, I gave it a shot but no dice
h
Halil Ozercan
04/18/2023, 2:34 PM
Keyboard appearing and disappearing again after calling
keyboardController.hide
is definitely unexpected. Can you please file a bug?
m
Maciej S
04/19/2023, 10:07 AM
I experimented a bit more, the
keyboardController?.hide()
behaviour I described seems to be unrelated to navigating away from the screen, and is not reproducible on all APIs. I filed a bug here.