-
Notifications
You must be signed in to change notification settings - Fork 869
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
Issue while selecting previous month date from FEBRUARY. #852
Comments
This seems not to be specific to February but happens when previous month has more days than the current one. Example:
|
I have raised pull request for this , i hope this solves the above issue you mentioned, for all months also |
We're experiencing the same issue here. First time in 4 years (using this library) one of our users reported this. Amazing how easily these things get overlooked. Can we get this fix merged? 🙏 |
Do you have any updates on this? |
Also ran into this today. If the default is the current day (1st June) and then May 31st is selected, it resets to May 1st. Re-selecting May 31st again works as the month lengths match. |
Hi there, I wanted to check in about the ongoing issue. Do you have any updates on when it might be resolved? Thank you. |
Is it possible to merge this? |
Faced the exact same issue. If we try to select previous months last day from current months view it would select the first day of the previous month instead of selecting the last day.
The issue seem to be happening for month combinations where the current month view has less days that previous month. I checked the pr raised by @ManishManda and the changes seems to be correct because the underlying issue is if we change the day before chaning the month this secnario would happend. Can we get the PR merge and have fix published? |
Encountering this as well - I see the repo hasn't been maintained for a year now. Has anyone created a fork with this fix in it? |
I have rewritten the workaround from #848 (comment) a little, maybe it will help someone https://codesandbox.io/p/sandbox/trusting-hertz-lddqcs?file=%2Fsrc%2FApp.js |
I fork the repository and fix this issue. Try https://www.npmjs.com/package/@iftek/react-datetime |
complete rewrite this package with react 18, and fix this issue |
I'm Submitting a ...
Steps to Reproduce
Selecting previous month dates from February is giving wrong date.
Expected Results
On clicking on 31 jaunary from February month should give 31 January as date.
Actual Results
On clicking on 31 jaunary from February month it is giving 3 January as date.
Minimal Reproduction of the Problem
can check here - https://codesandbox.io/s/boring-dew-uzln3
Other Information (e.g. stacktraces, related issues, suggestions how to fix)
The text was updated successfully, but these errors were encountered: