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

ion-input clearInput Doesnot Work With formControlName #9077

Closed
prantikv opened this issue Nov 8, 2016 · 3 comments
Closed

ion-input clearInput Doesnot Work With formControlName #9077

prantikv opened this issue Nov 8, 2016 · 3 comments
Milestone

Comments

@prantikv
Copy link

prantikv commented Nov 8, 2016

Short description of the problem:

The clear input cross (X) does not show up ion-input whenformControlName is added.

What behavior are you expecting?

To have the clearInput attribute to work along with model driven formControlName

This works

 <ion-input name="trakingNo" clearInput  type="text"></ion-input>

This Does not

 <ion-input name="trakingNo" clearInput formControlName="modelNo" type="text" ></ion-input>

Which Ionic Version? 1.x or 2.x
2..RC 2

@matejamateusz
Copy link

matejamateusz commented Jan 18, 2017

here you have the plunkr that describe the problem:

http://plnkr.co/edit/KGfz9i9uOHrYUZhL6ATL

@brandyscarney
Copy link
Member

So it seems to behave this way with a formControlName or ngModel. I can see that when you enter a value from nothing ('' -> 'val') it doesn't appear, but if you lose focus and then refocus the input the clear will show.

Created a PR for this here: #10121

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 4, 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 4, 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

3 participants