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
Description
"@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:
There is similar issue :