component in the following way, I always get the additional error message when I pass a date in dayjs format to the Form.Item: You won't get the error, but you won't have the prepopulated value in the date picker either. What else can I try? Here is an excerpt from the source code: ant.design v5.2.0 - date.locale is not a function rewritten as: "ant.design v5.2.0 - date.locale is not a callable function"-PHP Chinese Network Q&A
ant.design v5.2.0 - date.locale is not a function rewritten as: "ant.design v5.2.0 - date.locale is not a callable function"
P粉488464731
P粉488464731 2023-08-25 09:05:00
0
1
396

I have the following question:

I'm using version 5.2.0 of ant.design. When I use the component using:

;

If I don't specify the default value as dayjs

, I don't get the error, but I don't get the prepopulated value in the date picker either.

What else can I try?

This is an excerpt from the source code:

    
P粉488464731
P粉488464731

reply all (1)
P粉242126786

This is a sandbox for this case:https://codesandbox.io/s/antd-reproduction-template-forked-4mv33s?file=/index.js

edit: Works fine in sandbox :D

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!