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

keyboard.isVisible is NOT detecting the visibility of the keyboard as it says in the doc #161

Open
Udith-Gayan opened this issue Apr 18, 2021 · 0 comments

Comments

@Udith-Gayan
Copy link

After injecting the keyboard to the component's constructor as usual, in the html file I hide some elements based on the visiibilty of the keyboard.
*ngIf="!keyboard.isVisible"

Issue 01

When I click on an input box, the keyboard appears but the relevant component is not hidden. When I start typing a letter on the keyboard, then it hides that component.

Issue 02

When the keyboard disappears after clicking the back button of the phone, the above component do not appear again. But, after losing the focus on the input box by touching somewhere else, then that component appears again.

As a whole, isVisible function does not correctly detect the visibility of the keyboard. I tried this in Ionic v5 App.

Any solution or a work around for this please??

@Udith-Gayan Udith-Gayan changed the title keyboard.isVisible is fuctioning as it says in the doc keyboard.isVisible is NOT detecting the visibility of the keyboard as it says in the doc Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant