Input type=date not work properly on Ionic 2

I try to use input type=“date” on Ionic 2, but when open on iPhone, we need to hold tap about 0.5 second to focus the input.

Do someone know about this problem? How can we focus on input type date by just one tap, not hold tap?

1 Like

@Genesis, i was facing the same issue so i used the cordova date picker plugin instead.

This is how you can use it

<input type="text" readonly (focus)="showDatePicker()" placeholder="Select Date" id="eta-datepicker">



    var options = {
        date: new Date(),
        mode: 'date'
    };, function(date) {


    }, function(error) {

        //alert('Error: ' + error);


i would build an own component instead of hacky selecting the input.
And you are not using ngModel so there is no need to use a text input at all --> add a div with ng-click --> and show the formatted date as div content.

Maybe the focus approach has some sideeffects with the keyboard

1 Like

@bengtler, i don’t know about Genesis, but you sir did solved my problem with the keyboard. Thanks for the hint :smiley:

This should be fixed in the next release by this:

Thanks! could be awesome a calendar + timepicker component (a custom modal or similar).

Putting this here in case someone is looking for a resolution. Looks like an issue with iOS now on beta6. See this issue: