You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When utilizing a RangePicker component with componentProps set to valueFormat ('YYYY-MM-DD'), the formatted value isn't returned as expected when the validate() method of a form is employed.
* fix: bug RangePicker with componentProps valueFormat ('YYYY-MM-DD') does not return the formatted value when using form validate() method #3690
* fix: breadcrumb is displayed despite the menu being hidden
Describe the bug
When utilizing a
RangePicker
component withcomponentProps
set tovalueFormat ('YYYY-MM-DD')
, the formatted value isn't returned as expected when thevalidate()
method of a form is employed.Reproduction
export const testSchema: FormSchema[] = [ { label: 'Date', field: 'created_at', required: true, component: 'RangePicker', componentProps: { valueFormat: 'YYYY-MM-DD', }, }, ];
const handleSet = () => { setFieldsValue({ created_at: [dateRangeMonth.fromDate, dateRangeMonth.toDate], }); };
const handleSubmit = async () => { const v = await validate(); console.log('handleSubmit vvvvv', v); };
Current result
[ "2024-02-26 00:00:00", "2024-03-26 00:00:00" ]
Actual result should be:
[ "2024-02-26", "2024-03-26" ]
System Info
The text was updated successfully, but these errors were encountered: