Skip to content

Day remains selected when switching month even when out of min, max range #47

@conor-mac-aoidh

Description

@conor-mac-aoidh

Describe the bug

When a day is selected in the datetime picker and a min date is specified, an invalid date can easily be selected by switching months & pressing the apply button.

Minimal Reproduction

  1. Create a datetime picker with today as the selected date (eg. 22-11-2021)
  2. Set the minimum date to today + 1 day - 1 month (eg. 23-10-2021)
  3. Open the date picker & navigate to the previous month
  4. A date before the min date is selected (eg. 22-10-2021)

Expected behavior

A date before the minimum date should not be selectable.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions