Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField 키보드가 한번 내려갔을 때, 다시 키보드가 올라오지 않는 문제 #55

Closed
easyhooon opened this issue Apr 10, 2024 · 2 comments · Fixed by #66
Assignees
Labels
bug Something isn't working

Comments

@easyhooon
Copy link
Collaborator

발생 조건)
TextField 클릭 -> 키보드 올라옴 -> 시스템 백버튼 누름 -> 키보드 내려감 -> TextField 포커스 그대로 남아있음 -> 다시 TextField 클릭 -> 키보드가 올라오지 않음 -> 정상적인 키보드 입력 불가

원인 추측)

  1. 관련해서 이전에 개발한 프로젝트를 뒤져본 결과 정상적으로 작동하는 프로젝트와 그렇지 않는 프로젝트가 존재
    -> 라이브러리간의 버전 문제일 가능성
  2. 수소문 해본 결과, 다른 분들이 만드셨을땐, 키보드가 내려갔을 때, TextField 의 포커스는 그대로 남아있는 것은 같으나(cursor 깜박거림), 다시 클릭하면 키보드가 정상적으로 올라온다고 하심
    -> 코드 자체를 잘못 작성했을 가능성
@easyhooon easyhooon added the bug Something isn't working label Apr 10, 2024
@easyhooon easyhooon self-assigned this Apr 10, 2024
@easyhooon
Copy link
Collaborator Author

easyhooon commented Apr 11, 2024

https://issuetracker.google.com/issues/312895384

해당 링크를 참고해보면 BasicTextField2의 경우 compose-foundation 버전을 1.7.0 이상으로 올려주면 이슈가 해결가능함
다만, 앱 내에서 사용하는 calendar 라이브러리가 아직 compose 버전 1.7.0 이상을 지원하지 않기 때문에, foundation 버전을 1.7.0 이상으로 올리면 앱이 런타임에 터지는 문제가 발생함

따라서 BasicTextField2 를 BasicTextField 로 전환하여 해결(BasicTextField 의 경우, 현재 compose-bom 버전에서도 이슈와 같은 문제가 발생하지 않음)

BasicTextField2 는 다음번에 써보는 걸루,,

@easyhooon
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant