Open meetsiddharth opened 1 year ago
Hi @arqex Raised PR for this issue , KIndly review the changes
This seems not to be specific to February but happens when previous month has more days than the current one. It won't work for the days that are greater than the max day in current month so the issue can also be reproduced for other months.
Example:
I have raised pull request for this , i hope this solves the above issue you mentioned, for all months also https://github.com/arqex/react-datetime/pull/854
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?
still not yet merged @jrussak ,can we get this merged @arqex ?
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. Eg:
The issue seem to be happening for month combinations where the current month view has less days that previous month. for eg - (current view month) -> september(30) - (previous month whos last day is visible in september view) -> august(31)
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? @arqex
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 https://github.com/arqex/react-datetime/pull/848#issuecomment-1426641033 a little, maybe it will help someone https://codesandbox.io/p/sandbox/trusting-hertz-lddqcs?file=%2Fsrc%2FApp.js
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)