[pickers] Datepicker with html5 validation #10274
Labels
component: pickers
This is the name of the generic UI component, not the React module!
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: N/A
Steps:
Code:
Do not pick any date just press "send"
Current behavior 😯
You can send the form without filling in date
Expected behavior 🤔
built in browser validation should prevent form from being sent but it doesn't because the value of the
<input>
field that datepicker has is "MM / DD / YYYY" instead of empty"MM / DD / YYYY" should be inside placeholder attribute rather than being the value
Context 🔦
My form relies 100% on html5 validation and no js validation
Your environment 🌎
npx @mui/envinfo
USing Google Chrome Version 116.0.5845.141 (Officiell version) extended (64 bitar) on Windows 10
The text was updated successfully, but these errors were encountered: