Skip to content

Bug - Datepicker - impossible select some days #7654

@AliaksandrHrynevich

Description

@AliaksandrHrynevich

If you try to set Monday as the first week day instead of Sunday it becomes impossible to select some days.

How do you reproduce the problem?

  • Set weekStart={Weekday.Monday}
  • Select 2023 January

Expected behavior

We can select 1th January 2023 here

Actual behavior

As you can see on the screenshot, it is impossible to select 1th January 2023 because it is not present in the datepicker.
You need to select December 2022 to have possibility to select it.

For most users, this is highly non-obvious behavior. Will be nice if the last week of the previous month will be visible if at least 1 day of selected month is situated there. An example of a possible implementation can be seen in the Bootstrap CSS, PrimeReact or Mac OS / Windows calendars

Screenshot_550

Example of the possible improvement:

Screenshot_551

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions