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

bug: [@ionic/angular@5.3.2 bug] always focus at first ion-input inside ion-item w/ multiple inputs #22037

Closed
pipoa opened this issue Sep 6, 2020 · 4 comments · Fixed by #22049
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@pipoa
Copy link

pipoa commented Sep 6, 2020

Current behavior:

I have switch 5.3.1 , 5.3.2 tested, It only happens in 5.3.2
If there are multiple ion-inputs inside ion-item, you have no idea to input data on ion-inputs except 1st one ex:
It always auto focus on 1st ion-input!

Bug Report

Ionic 5

<ion-item>
    <ion-input></ion-input>  <!-- 1st, focus always goes here -->
    <ion-input></ion-input>  <!-- 2nd, click here jump to 1st -->
    <ion-input></ion-input>  <!-- 3rd, click here jump to 1st-->
    <ion-input></ion-input>  <!-- ... , click here jump to 1st-->
    <ion-input></ion-input>  <!-- ... , click here jump to 1st-->
</ion-item>

Expected behavior:

should correctly focus each ion-input individually
Steps to reproduce:

create templat like above provided codes

@ionitron-bot ionitron-bot bot added the triage label Sep 6, 2020
@indraraj26
Copy link

Tested indeed it is always focus on first input even if you click on 2,3,4 and 5 ion input
playground: https://codepen.io/indraraj26/pen/dyMJLQQ

@moridianmess
Copy link

moridianmess commented Sep 8, 2020

I can confirm that I am also having this issue and that it was working in 5.3.1

@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Sep 8, 2020
@ionitron-bot ionitron-bot bot removed the triage label Sep 8, 2020
@liamdebeasi
Copy link
Contributor

liamdebeasi commented Sep 8, 2020

This appears to be caused by e4964ff#diff-3e56358e87207796613625bf863c6da0. cc @brandyscarney

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 14, 2020

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 Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
4 participants