-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Range DatePicker throws an error on onChange
handler
#78
Comments
@thebrodmann First off, it seems that CodeSandbox isn't throwing the intended error. If you check this on your local machine it would throw an error like this: That's because of the initial |
It causes a breaking change. I think we should change the TypeScript type definition to just allow null type for range date selector. |
@thebrodmann have you checked v1.1.1? now it support |
Describe the bug
Range date picker throws an error on
onChange
handler. There is no issue with single day nor multiple days selector.Reproduced Version on CodeSandbox
Here it is on CodeSandBox
Expected behavior
It should run the
onChange
handler without throwing any exception.The text was updated successfully, but these errors were encountered: