Skip to content

ionKeyboardDidShow and ionKeyboardDidHide browser keyboard events stopped working #27654

Closed

Description

@guy-a

https://github.com/ionic-team/ionic-framework/blob/d3232dcc007738fae851660bd818c8056b48b7d2/core/src/utils/keyboard/keyboard.ts#LL34C2-L34C2

Keyboard.getEngine() returns false and never undefined, hence the else block will never run and visualViewport.onresize is never registered.

Activity

  1. self-assigned this
    on Jun 15, 2023
  2. liamdebeasi commented on Jun 15, 2023

    @liamdebeasi
    Contributor

    Thanks for the report. I can reproduce the behavior. As mentioned, the problem is if Capacitor is available but the Keyboard plugin is not, that function returns false. If Capacitor is not available it returns undefined. Our automated tests do not have Capacitor available so we did not catch this case during testing. I will work on a fix.

  3. added
    package: core
    type: bug
    on Jun 15, 2023
  4. added a commit that references this issue on Jun 15, 2023
    7a38a00
  5. removed their assignment
    on Jun 15, 2023
  6. liamdebeasi commented on Jun 15, 2023

    @liamdebeasi
    Contributor

    Thanks for the report. This is fixed in Ionic v7.0.14 which came out a few minutes ago.

  7. guy-a commented on Jun 16, 2023

    @guy-a
    Author

    Thank you for the extremely fast response and fix :)

  8. ionitron-bot commented on Jul 16, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  9. locked and limited conversation to collaborators on Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions