Skip to content

Month Rangepicker selectableRanges error #129

@bhcha

Description

@bhcha

Describe the bug

When using selectableRanges option for monthdatepicker, selecting the first month throws an error.

To Reproduce

Steps to reproduce the behavior:

  1. Go to start month picker
  2. Click on current month
  3. See error

Screenshots

Image

Desktop (please complete the following information):

  • Browser: chrome

Additional context

selectableRanges: [
                    [today, new Date(today.getFullYear() + 1, today.getMonth(), today.getDate())]
                ],
                format: 'YYYY-MM',
                type: 'month'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions