react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Month selector picks wrong month

Open mkst opened this issue 5 years ago • 3 comments

Describe the bug Selecting a month beyond March chooses the wrong month

To Reproduce Steps to reproduce the behavior:

  1. Go to example codepen from readme
  2. Click on 'Simple Date picker' area
  3. Click (e.g.) 2020.05 to choose new month
  4. 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)

mkst avatar May 21 '20 13:05 mkst

ok, have stumbled across this commit to the dev branch that fixes my issue.

mkst avatar May 21 '20 14:05 mkst

there is any solution meanwhile? @streetster

ferjpi avatar May 28 '20 21:05 ferjpi

@ferjpi - i think we've just got to wait for @y0c to merge dev into master and release a new version...

mkst avatar Jun 09 '20 12:06 mkst