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

Alert Prompt auto-focus of first input element broken since 3.4.2 #12214

Closed
frankpapenmeier opened this issue Jun 30, 2017 · 10 comments
Closed

Comments

@frankpapenmeier
Copy link

frankpapenmeier commented Jun 30, 2017

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.4.2 and above

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:
First input element in alert prompt created with AlertController is not focused automatically anymore since ionic-angular 3.4.2

Expected behavior:
First input element should be focused automatically

Steps to reproduce:
Original Behavior in 3.4.1:
http://plnkr.co/edit/TUAhgAC6V0HLdyNDXQjh?p=preview
(click open alert prompt button and watch auto-focus of input element)

Behavior in 3.4.2:
http://plnkr.co/edit/I8K6JuAIijbGldtxwnyA?p=preview
(no auto-focus anymore)

Behavior in 3.5.0:
http://plnkr.co/edit/9AuxpB27vQwgzxR4TgPz?p=preview
(still broken)

** Further Info **

Issue might be related to the following PR:
#12023
(Although it is tagged with 3.4.1 also, the changes seem to have been effective with 3.4.2 only.)

@jgw96 jgw96 added the v3 label Jun 30, 2017
@jgw96
Copy link
Contributor

jgw96 commented Jun 30, 2017

Thanks for using Ionic, we will look into this.

@frankpapenmeier
Copy link
Author

Just tried upgrading to 3.5.3: Unfortunately, this regression still exists in 3.5.3

@lostdev
Copy link

lostdev commented Jul 20, 2017

Problem for me in 3.5.2 as well.

@Rudimo
Copy link

Rudimo commented Jul 28, 2017

The same in version 3.6.0

@lostdev
Copy link

lostdev commented Aug 1, 2017

Is there a recommended work-around for this?

@Rudimo
Copy link

Rudimo commented Aug 1, 2017

@lostdev Nothing helps. Previously, the alerts were normal.

@lostdev
Copy link

lostdev commented Aug 1, 2017

@Rudimo have you attempted re-focusing the input manually once the modal is displayed?

@Rudimo
Copy link

Rudimo commented Aug 1, 2017

@lostdev No. It seems to me it will not help.

@lostdev
Copy link

lostdev commented Aug 7, 2017

@jgw96 Any update on this issue? I have a work-around for my most important screens but this issue is occurring across the board for me, and the work-around isn't ideal.

Thank you!

@ionitron-bot
Copy link

ionitron-bot bot commented Aug 7, 2018

Thanks for the issue! This issue is being closed due to inactivity. 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.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Aug 7, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 7, 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

4 participants