ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Ionic 2 rc3 after modal close another input focus and keyboard open

Open ykonstant opened this issue 9 years ago • 4 comments

I have input <ion-input type="text" formControlName="trip_id" placeholder="Tag Trip" (tap)="showAutoFill()" (focus)="showAutoFill()" [(ngModel)]="trip.title" readonly>

when we select search item modal close, and another input is focused & keyboard is open

ykonstant avatar Dec 03 '16 06:12 ykonstant

Hello, thanks for opening an issue with us! Would you be able to provide a plunker that I can use to reproduce this issue?

jgw96 avatar Dec 05 '16 15:12 jgw96

Can also confirm this. It only happens on iOS not Android. Here's a plunker; http://plnkr.co/edit/0RpQAN15SKOAYjO7BDUo

If the keyboard is up and you call dismiss on the ViewController the keyboard stays up. This behavior only happens on iOS. You can only get the keyboard down again if you select another input somewhere.

I've solved this problem temporarily by using the Keyboard class. Keyboard.close().

Tobiaswk avatar Dec 13 '16 19:12 Tobiaswk

Hello all! As it seems it has been a while since there was any activity on this issue I am closing it for now. Feel free to comment if you are still running into this issue.

If you are still having the issue, please be sure to include a GitHub repo with a sample application.

Thanks for using Ionic!

kensodemann avatar Jan 03 '18 20:01 kensodemann

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.

ionitron-bot[bot] avatar Sep 01 '18 12:09 ionitron-bot[bot]