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
DatePicker types error using Luxon DateTime #48757
Comments
Hello @jonmurciano. Please provide a online reproduction by forking codesandbox of [email protected] or [email protected], or provide a minimal GitHub repository. Issues labeled by 你好 @jonmurciano,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [email protected] 或 [email protected] 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。 |
Hello, I've already solved the access to codesandbox. |
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
The text was updated successfully, but these errors were encountered: