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

The input of a prompt alert immediately looses the focus of the input on iOS #11209

Closed
antkers opened this issue Apr 13, 2017 · 7 comments
Closed

Comments

@antkers
Copy link

antkers commented Apr 13, 2017

Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

When opening a prompt alert (https://ionicframework.com/docs/components/#alert-prompt) on the iPhone 5s (ios 10.3.1), the input of the alert gets the focus and the keyboard pops up. The input immediately looses the focus and the keyboard pops out without having done anything... The behaviour on Android is correct, the keyboard stays open and the input keeps the focus. I'm using Ionic 3.0.1 on both operating systems.

Expected behavior:

The keyboard must stay open and the input must keep the focus after the prompt alert is presented.

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v4.6.0
Xcode version: Not installed
@jgw96
Copy link
Contributor

jgw96 commented Apr 13, 2017

Hello, thanks for opening an issue with us. We will look into this.

@jgw96 jgw96 added the v2 label Apr 13, 2017
@urm47
Copy link

urm47 commented Apr 14, 2017

I ran into the same issue. Maybe related to #11114.
Focus stays with
<ion-item text-wrap detail-push (click)="openAlert()">...</ion-item>

Focus lost with
<button text-wrap detail-push (click)="openAlert()">...</button>

Focus also lost with
<ion-item text-wrap detail-push (tap)="openAlert()">...</ion-item>

@log4j
Copy link

log4j commented Apr 14, 2017

I have the same issue.
If you hold the button which triggers the prompt alert for a while like 3 seconds, and then release, the keyboard shows properly after prompt alert. If your click happens fast (normal speed), the keyboard shows then disappears.
Waiting for someone to solve it

@antkers
Copy link
Author

antkers commented May 24, 2017

this seems to be working now with ionic version 3.2.1

@antkers antkers closed this as completed May 24, 2017
@markwatsonatx
Copy link

markwatsonatx commented Sep 28, 2017

I am encountering this issue in the iOS simulator in Ionic 3.12.0 when using a hardware keyboard. To fix you can just toggle the software keyboard in the simulator. Then it works well.

@chandanch
Copy link

ref: #11114

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

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 ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants