react-datepicker
react-datepicker copied to clipboard
Month selector picks wrong month
Describe the bug Selecting a month beyond March chooses the wrong month
To Reproduce Steps to reproduce the behavior:
- Go to example codepen from readme
- Click on 'Simple Date picker' area
- Click (e.g.) 2020.05 to choose new month
- Click e.g. June, note that date selected is 2020.04
Mapping appears to be:
Jan => Jan
Feb => Feb
Mar => Mar
Apr => Feb
May => Mar
Jun => Apr
July => Mar
Aug => Apr
Sep => May
Oct => Apr
Nov => May
Dec => Jun
Expected behaviour I expect to select the month I click on.
Screenshots n/a
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version: 81.0.4044.138 (Official Build) (64-bit)
ok, have stumbled across this commit to the dev branch that fixes my issue.
there is any solution meanwhile? @streetster
@ferjpi - i think we've just got to wait for @y0c to merge dev into master and release a new version...