HTML date min-max attribute not working in iPhone

Hi All,

We are using html input type date in our hybrid application which launches the native datepicker in the app.

As we need the app to be accessible we chose the html type date.

However at certain instances we want to restrict the date selection till present date only. We have used the max attribute to achieve this, for some reasons the datepicker is not respecting this attribute and allowing the user to select future dates.

We are in a tricky position since we do not want to use any library and the production date is nearby.

Below is the markup we have used for replicating the behavior:
<form>
<label for="party">Choose your preferred party date:
<input type="date" name="party" min="2017-04-01" max="2017-04-30">
</label>
</form>

Any help would be appreciated.
Thanks in advance.
Post not yet marked as solved Up vote post of Kalpeshjain89 Down vote post of Kalpeshjain89
1.5k views
  • Can anyone please update on the status of the issue?

Add a Comment

Replies

after one year , this problem not resolve,No one even paid attention.***.

Yes I agree. Apple inaction on the said bug is pointing us to use a JS library for date validation, which defeats the purpose of native HTML capability.

It humble request you look into the matter.

I submit an issue on feedback. I hope it'll be seen...

https://feedbackassistant.apple.com