Closed jonmurciano closed 7 months ago
Hello @jonmurciano. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce
will be closed if no activities in 3 days.
你好 @jonmurciano,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.x 或 antd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
Hello, I've already solved the access to codesandbox.
How could I reproduce the type error?
Hi, we are having some problems trying to import LuxonGenerateConfig from rc-picker in the sandbox.
This is our situtation after 5.14.
We are creating a Datepicker based on Luxon following your guide
https://ant.design/docs/react/use-custom-date-library/
Based on that we create our picker wrapper component, empty as showed below, nothing custom yet
Now the onChange event in your types is missing | null.
onChange type from 5.14
before to 5.14
Could you reproduce it in your codesandbox?
Sorry guys, after reviewing the error was a little mistake on our side. Closing the issue
Thank for your time
Reproduction link
Steps to reproduce
Insert DateTime with onChange property.
What is expected?
onChange property on DatePicker component returns typinng error not admitting nullable DateTime.
What is actually happening?
onChange property on DatePicker component returns typinng error not admitting nullable DateTime