Skip to content

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

Open
@bezegora

Description

@bezegora

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions