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

[Bug]: When changing [type] of <input> @capacitor/keyboard doesn't recalculate height of keyboard #7827

Closed
1 of 3 tasks
bezegora opened this issue Jan 13, 2025 · 1 comment
Labels

Comments

@bezegora
Copy link

bezegora commented Jan 13, 2025

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Other API Details

npm --version output: 10.2.4
node --version output: v18.19.1
@capacitor/keyboard: 6.0.3

reproduces on android emulator with API 33

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

When i change [type] of <input> element to 'tel', while the keyboard is showing, the google keyboard changes its type to numeric but plugin doesn't recalculate its height and doesn't emit events keyboardWillShow and keyboardDidShow, so there is black or white (depending on system settings) bar above it
image

Expected Behavior

In previous versions (4.x.x) it will emit both events keyboardWillShow and keyboardDidShow, when [type] is changed and keyboard is open, and the height is recalculated - black/white bar is not showing

Project Reproduction

https://github.com/bezegora/bar-above-keyboard

Additional Information

No response

@jcesarmobile
Copy link
Member

closing as duplicate of ionic-team/capacitor-plugins#2301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants