Skip to content
This repository has been 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 opened this issue Sep 14, 2021 · 0 comments
Labels

Comments

@bhandaribhumin
Copy link

bhandaribhumin commented Sep 14, 2021

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

@ionitron-bot ionitron-bot bot added the triage label Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant