first give demo, demo
has a start time and an end time, which requires that the start time must be less than the end time
reproduction step:
- choose a start time, such as
2018-08-23
- choose an end time, which is less than the start time, for example,
2018-08-22
. The end time promptsthat the end time must be greater than the start time
. So far, there is no problem .
- Select another start time, which is less than the end time, for example,
2018-08-21
. The error prompt for the end time still exists. This is the main step. how to check the end time again
how to check again if you don"t use RangePicker
, don"t use disabledDate
, don"t customize validateStatus
of Form, help, etc. I called
validateFieldsAndScroll` in onChange of
DatePicker , which seems to be of no use