Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

Not been able to set focus to my <ion-input> while set page as root page ionic 3 ANDROID only #1143

Open
@bhandaribhumin

Description

@bhandaribhumin
 "@ionic/app-scripts": "3.2.3",
"@ionic-native/keyboard": "4.20.0",
  "cordova-plugin-ionic-keyboard": "2.2.0",

first time load page nothing happened also while click on <ion-input> keyboard not shown but when I click on outside of input or tap any other in page and than click on input it works.

Screen.Recording.2021-09-14.at.3.14.46.PM.mov
if (this.plt.is('android')) {
     setTimeout(() => {
       const element = this.renderer.selectRootElement(
         '#first > input'
       ) as HTMLTextAreaElement;
       element.focus();
       element.select();
     }, 200);

Also try all mention workaround but not works:

https://stackoverflow.com/questions/42693567/not-been-able-to-set-focus-to-my-ion-input-as-i-enter-the-page

There is similar issue :

ukhkxyz@43c1cc9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions