-
-
Notifications
You must be signed in to change notification settings - Fork 22
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 Issues #54
Comments
Hey, @ept-Ayush Your link is not working. |
@Feshchenko Thanks for response. Sorry for that it was private Try this. Also one more thing I wanted to confirm I am trying create something similar to AIRBNB DATEPICKER where
Do we have these features? |
|
@Feshchenko Also another thing is if we want to set only endDate and startDate as blank we can not set that we get errors as mentioned in #48 |
@Feshchenko Regarding this we have one more issue if today is March 31 2024 we have March and April calendar on the screen with left navigation button as disabled and right month button as enabled. Now if click right button and go to next available months, that is, April and May but now left icon is disabled although today is 31 March (even we disable the past date). Can we expect any solution for this? MicrosoftTeams-video.4.mp4 |
@ept-Ayush please provide link to the codesandbox |
@Feshchenko I have checked that with 6.6.0 on 31 March. Its happening if the day is last day of the month (31 March 2024) and the next month have less dates (30 Apr 2024). But I can't produce that from outside now as todays date is different can't reproduce that same scenario from outside may be if you try, you will be able to get that issue from inside in that specific sceanrio. The issue is might be in subtractOffset nextDate variable, its seems it was getting some wrong value and hence resulting the ** Here in my scenario state.offsetDate and minDate was new Date(2024, 2, 31) and negativeOffsetValue was {days: -0, months: -1, years: -0}**
And I guess it will be in 6.6.1 as well as I have compared the changes. Here's sample codesandbox but you will not get the issue as the date is changed. Let me know if you have any doubts. |
Please see the codesandbox
https://codesandbox.io/p/devbox/range-with-context-hooks-forked-9ll4x4?file=%2Fsrc%2Fapp.tsx%3A62%2C10&workspaceId=cdc8aeba-148c-4e68-9e2d-c7ad92a84380
Here you can see , we can not go to the feb although we have disabled past but still if defaultvalue is provided it should be visible.
Practical scenario would be lets say in past someone had selected that range and we are only enabling dates from today's date. 1 month after he want to see the calendar he cannot see.
Another issue is if the range selection is of 2 months its not showing the two months together we have to go back to see that which doesn't make sense.
Can you please check this @Feshchenko ?
The text was updated successfully, but these errors were encountered: