Chrome now seems to have a native datepicker for the <input type="date">
fields, which is awesome. Unfortunately, the designers of my company don't like the look of it and want to replace it with a JavaScript alternative.
To do that, the input type has to be changed to text
so the native datepicker doesn't get triggered. But this breaks the native datepicker on smartphones, which we want to keep because it's better usability wise than a JavaScript datepicker.
Basically, on desktops we want the JavaScript date picker and on mobiles we want the native one.
Seen as we can't change the input type from text
to date
, I have to somehow disable the native datepicker of browsers. Does anyone know how to do that?