Skip to content

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

@frankpapenmeier

Description

@frankpapenmeier

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions