-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error using time select #4765
Comments
Hello react-datepicker/src/date_utils.ts Line 1409 in 27829c7
|
Thank a lot for reply! |
try to isolate the |
I'm sorry, i forgot to write that update to 6.9.0 version didn't solve the problem. I played with props, only prop showTimeSelect affects on error. I used calendar in the second project without time selection, but i added it to check how would it work and it works ok. In the first project i have no error without showTImeSelect property. |
I have more concerns about {...rest} spread the library will be converted to TS soon #4700 so it might help with debugging your problem |
Hi! I'm using react-datepicker on two projects. Both projects have same 4.8.0 version of library, but in the first i faced with a problem. I need to use showTimeSelect prop and when i select date (or select time firstly and then click on filled field), app crashes with an error as on screenshot. I use react-datepicker with react-hook-form's useController, i try to use almost identical datepicker components, but in one project i still have an error. I convert received value to timestamp and provide it to controller in the both components. Please, write if you need to be provided with more data or description, i`ll send it!
The text was updated successfully, but these errors were encountered: