Show validation message when submit button is clicked Date field is not supplied. - Currently, this is working for String and Number Type, except DateType & MixedType.
To Reproduce
const model = Schema.Model({
startDate: DateType().isRequired('This field is required.'),
})
<Form.Group controlId="start-date-7">
<Form.HelpText>
Start date
<Form.HelpText tooltip>Valid Start Date</Form.HelpText>
</Form.HelpText>
<Form.Control name="startDate" style={{ width: 160 }} accepter={DatePicker} />
</Form.Group>
What version of schema-typed are you using?
"rsuite": "^5.22.0",
Nov 13, 2022 - likely 2.0.3Describe the Bug
I am validating a form date value and Am getting
DateType
is not a function error in ReactJS. I followed the guidance here but, nothing works.I'm surprised that the documentation under form validation skipped and
did not include date values
, why?Expected Behavior
Show validation message when submit button is clicked Date field is not supplied. - Currently, this is working for String and Number Type, except DateType & MixedType.
To Reproduce