JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.94k stars 1.16k forks source link

[Android only] TextField: Keyboard does not reopen on tap after an initial dismissal #4010

Closed creativedrewy closed 8 months ago

creativedrewy commented 9 months ago

Describe the bug Tapping on a TextField, then dismissing the keyboard, then tapping again does not bring the keyboard back up.

https://github.com/JetBrains/compose-multiplatform/assets/2018851/eabc9e8e-d230-4b96-ad04-5b941ac7ffa6

Affected platforms Select one of the platforms below:

NOTE: I'm aware instructions for Android are to file with Google, but I'm only seeing this issue inside of a Kotlin multiplatfrom codebase, and not Android more generally.

Versions

To Reproduce Steps and/or the code snippet to reproduce the behavior:

  1. Tap on a TextField for the first time
  2. Dismiss the system keyboard so that the textfield is still focused
  3. Tap on the TextField again

Expected behavior The keyboard should reopen so more text can be input. However, it does not.

creativedrewy commented 9 months ago

UPDATE: I have filed on the Google issue tracker as well: https://issuetracker.google.com/issues/315206572

m-sasha commented 9 months ago

Hi. A Kotlin multiplatform on android is just a plain android app, so you should be able to reproduce it in a regular Android project...

creativedrewy commented 9 months ago

This has actually been reproduced in a standard app context, so this bug can be closed. Thanks!

ErickSorto commented 9 months ago

I am also having the same issue

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.