Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] ProFormTimePicker 在 antd@4 情况下的由于 dayjs 不支持 customParseFormat 导致 invalid date #6862

Closed
powerfulyang opened this issue Mar 28, 2023 · 0 comments

Comments

@powerfulyang
Copy link
Contributor

🐛 bug 描述

在 antd@4 的情况下使用 form.setFieldsValue 给 ProFormTimePicker 设置值,由于
https://github.com/ant-design/pro-components/blob/b114d7ad6f41612c2f627f23f84570fd915538a7/packages/utils/src/parseValueToMoment/index.ts 这个方法不支持时间格式,导致 invalid date。

form.setFieldsValue({
    expirationTime: '12:00',
});

🏞 期望结果

期望升级版本不影响原 antd@4 的用户

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant