-
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
Date Range Picker not working properly when try to edit directly on input box #4002
Comments
@lechu24 That's because you are passing selected props startDate Try something like this and make sure you are selecting both date when props change.
|
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
@aziyatali that's not really an answer. Your snippet if for a separate solution: using two date pickers to make a range. The issue is with using the selectsRange prop. When using that prop you cannot set or change the entire range using the input. If you type in dates it'll set the start date but it won't recognize any further input past that. |
Also having this issue btw |
I have the same issue. Seems like the problem is parsing logic preventing Screenshot with a console.log after typing in the input field. ( react-datepicker/src/index.tsx Line 604 in f735e60
Any ideas? |
Describe the bug
When I try to edit the dates in date range picker directly in the input box without using the range picker the start date and end date is not getting updated rather it is getting reseted to old values.
To Reproduce
Expected behavior
It should change to 18/12/2024.
The expected behaviour is that the date should change even when we directly change that in the input box without changing it through date range picker
Screenshots
1.
The text was updated successfully, but these errors were encountered: