ionic-team / ionic-team/ionic-framework
bug: keyboard overlapping input fields
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 50
描述
### Prerequisites
- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### Ionic Framework Version
v8.x
### Current Behavior
The keyboard overlaps input fields in certain scenarios on Android and always on iOS.
My main issue in my own project is a footer that hides the input field on iOS, but I've tested both with and without a footer here, which both seem to cause issues.
https://github.com/user-attachments/assets/cf57ba60-8cbe-4c01-b5c1-a780976c5318
https://github.com/user-attachments/assets/4503a8bc-2aba-4e00-b1ad-c280c4828dda
### Expected Behavior
I expect that Android and iOS behave in the same way.
I expect the input-field to be visible when I close the keyboard as well.
### Steps to Reproduce
1. Go on tab 2 or 3
2. Tap input-field
3. Check if input-field is visible
4. Close keyboard
5. Check if input-field is visible
### Code Reproduction URL
https://stackblitz.com/edit/ionic-input-overlap?terminal=dev
### Ionic Info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package.json'
Require stack:
- C:\Users\---\Desktop\test\ionic-input-test\node_modules\@ionic\cli\lib\project\index.js
- C:\Users\---\Desktop\test\ionic-input-test\node_modules\@ionic\cli\lib\index.js
- C:\Users\---\Desktop\test\ionic-input-test\node_modules\@ionic\cli\index.js
- C:\Users\---\Desktop\test\ionic-input-test\node_modules\@ionic\cli\bin\ionic
Ionic:
Ionic CLI : 7.2.0 (C:\Users\---\Desktop\test\ionic-input-test\node_modules\@ionic\cli)
Ionic Framework : @ionic/vue 8.2.7
Capacitor:
Capacitor CLI : 6.1.2
@capacitor/android : 6.1.2
@capacitor/core : 6.1.2
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v20.15.1 (C:\Program Files\nodejs\node.exe)
npm : 10.7.0
OS : Windows 10
=================================
Ionic:
Ionic CLI : 7.1.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 8.2.7
Capacitor:
Capacitor CLI : 6.1.2
@capacitor/android : 6.1.2
@capacitor/core : 6.1.2
@capacitor/ios : 6.1.2
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v18.17.1 (/usr/local/bin/node)
npm : 9.6.7
OS : macOS Unknown
### Additional Information
_No response_
贡献指南
调研方向
从链接的 StackBlitz 复现开始,并在 Android 和 iOS 上按照列出的步骤操作,记录有 Footer 和没有 Footer 时的差异。检查报告中所示的 Ionic Vue 8.2.7 和 Capacitor 6.1.2 设置。完成的标准是:键盘打开时以及关闭后,输入框都保持可见,并且在两个平台上的行为一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, ios, typescript
- 领域
- frontend, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100