Hello,
I am new here. I inherited a IONIC project that uses Angular and I am just starting to learn about both. This project was first developped targetting devices (IOS, Android…) but it was decided that it must also work on desktop web browsers…
I have a problem with date pickers, here is the HTML located in a template :
<div class="col col-80 label-date">
<input
name="datefrom" type="date"
ng-model="startdate"
ng-style="{'width':'123px'}">
</div>
It works great when openned in browsers on devices, using the HTML5 built-in datepicker but on a desktop’s Chrome, the default HTML5 datepicker is supposed to be a text box, with the ability to click on the three parts of the date, click up and down buttons to change either parts of the date and a downward black arrow that should show a calendar when clicked.
In a test page openned in Chrome, this HTML works:
<input type="date" />
I tried adding the same as above in our IONIC app and as with the first HTML, in Chrome, the downward arrow doesn’t work !!!
I have noticed that in ionic.css file, the INPUT[type=date] tag is modified but as I am not an expert on CSS… I am wondering if it could be something done on the IONIC part of the application that breaks the HTML5 default datepicker in Chrome (and IE for that matter…).
Is it IONIC that causes that for a good reason ? Is it a bug or is it suppose to work and it would be only in my app that it is wrong ?
Thanks for any help on this subject, best regards,
Claude