Skip to content

Month selector picks wrong month #61

@mkst

Description

@mkst

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions