[Webkit-unassigned] [Bug 225639] New: HTML datepicker's min-max attribute not working
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 11 00:12:04 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225639
Bug ID: 225639
Summary: HTML datepicker's min-max attribute not working
Product: WebKit
Version: Other
Hardware: iPhone / iPad
OS: iOS 14
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: kalpeshjain89 at gmail.com
CC: cdumez at apple.com, wenson_hsieh at apple.com
Using html input type date in the hybrid application launches the native datepicker in the app.
At certain instances the date selection should be restricted till present date only.
We have used the max attribute to achieve this feature, however for some reasons the datepicker does not respect this attribute and allows the User to select future dates.
Below is the markup to replicate the behavior:
<form>
<label for="dob">Choose your date of birth:</label>
<input type="date" name="dob" id="dob" max="2017-04-30" />
</form>
Expected Behavior:
User should not be allowed to select future dates.
Actual Behavior:
User can select future dates.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210511/d631b09e/attachment.htm>
More information about the webkit-unassigned
mailing list