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 #2301

Open
bezegora opened this issue Jan 23, 2025 · 0 comments

Comments

@bezegora
Copy link

Bug Report

Plugin(s)

@capacitor/keyboard: 6.0.3

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

Platform(s)

Android

Current Behavior

When i change [type] of 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

Code Reproduction

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

Other Technical Details

reproduces on android emulator with API 33

Additional Context

When debugging i found that it just doesnt recalculate hight when type of keyboard changes

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

No branches or pull requests

2 participants