[Bug]: keyboard is hiding the input field on Android

Đang mở
#8,108 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Bắt đầu với bản tái hiện tối thiểu được liên kết trong release app-mini mini_app và xác minh hành vi bàn phím Android được mô tả trong issue. Đọc tài liệu Capacitor Keyboard API, sau đó truy vết hành vi của Android chịu trách nhiệm cho việc thay đổi kích thước webview. Công việc được xem là hoàn thành khi trường nhập liệu đang được focus vẫn hiển thị trong lúc nhập trên Android mà không gây hồi quy đối với khác biệt iOS đã nêu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs reproduction platform: android
Capacitor Version

Capacitor Version
Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/android: 7.4.2
@capacitor/ios: 7.4.2

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/ios: 7.4.2

[error] Xcode is not installed

Other API Details
npm version: 8.19.4
node version : v20.14.0
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

When I type on an input field, the keyboard hides it
See the minimum example in github https://github.com/Toto5931/app-mini/releases/tag/mini_app

Expected Behavior

I would expect the size of the webview to be reduced so that the input stays visible while we are typing

Project Reproduction

https://github.com/Toto5931/app-mini/releases/tag/mini_app

Additional Information

This problem is different from the https://github.com/ionic-team/capacitor/issues/8099 which concerns iOS
I have looked at https://capacitorjs.com/docs/apis/keyboard but the resize option is Only available on iOS.

Image Image
Ngôn ngữ chính
TypeScript
Star
17.1k
Fork
1.3k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/capacitor

Tất cả issue của ionic-team/capacitor

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.