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

clearInput not working after first time #6514

Closed
brandyscarney opened this issue May 12, 2016 · 10 comments
Closed

clearInput not working after first time #6514

brandyscarney opened this issue May 12, 2016 · 10 comments
Assignees
Milestone

Comments

@brandyscarney
Copy link
Member

Also need to move it to the ion-input in demos

@brandyscarney
Copy link
Member Author

This actually is being caused by being focused in the input. I am going to push this back but I'd like to only show the clearInput button on focus.

@vukasin-nikodijevic
Copy link

My understanding on this is that it should be visible only on focus (otherwise confusing).
I'm not gaining anything to see it on other not focused inputs.

@brandyscarney - by any chance any ETA for 2.0.0-beta.8 :)

@brandyscarney
Copy link
Member Author

This will be fixed in the beta 10 release. 😄

@joshuaohana
Copy link

@brandyscarney I am still having this same issue with RC4. In my case; however, I have a (click) event tied on an ion-input. It consistently requires two taps for the click event to fire.

  • this is inside a form, inside a list
      <ion-item>
        <ion-label floating>Type</ion-label>
        <ion-input tappable type="text" [ngModel]="type?.name" name="type" readonly (click)="selectType()"></ion-input>
      </ion-item>

@jgfet
Copy link

jgfet commented Sep 15, 2017

I'm having problems getting clearInput working at the moment too.
ionic info:
cli packages: (/Users/jgf/.nvm/versions/node/v8.2.1/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

local packages:

@ionic/app-scripts : 2.1.3
Ionic Framework    : ionic-angular 3.6.0

System:

Node : v8.2.1
npm  : 5.3.0
OS   : macOS Sierra

Looked at code in sample here:
https://github.com/ionic-team/ionic/blob/master/demos/src/input/pages/page-one/page-one.html
I am wrapping the field a Reactive Form..
It seems to work in the documentation page - you get the x at the end as you start to type.
But I don't get any x when I type when doing ionic serve.

Update. It seems necessary to surround the ion-input with an ion-item to make the thing work!

@AlokGupta007
Copy link

Hi,

I am facing the same issue.

@duoduoObama
Copy link

hello,I also encountered
(我也遇到了)

@jaggu07
Copy link

jaggu07 commented Aug 5, 2018

same for me
<ion-label class="leaveLabel">Start Date</ion-label> <ion-item class="regitem"> <ion-input type="date" formControlName="leave_from" required placeholder="Leave From"></ion-input> </ion-item> <ion-label class="leaveLabel">End Date</ion-label> <ion-item class="regitem"> <ion-input type="date" formControlName="leave_to" required placeholder="Leave To"></ion-input> </ion-item>

After double tap only date picker opens

@trakhimenok
Copy link

I don’t think old issues are followed by Ionic team. You better create a new one if still a problem. Make sure you are using latest v4 version.

@ionitron-bot
Copy link

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

8 participants