Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the behaviour of MonthField range selection #924

Open
OKremenovic opened this issue Feb 17, 2022 · 1 comment
Open

Change the behaviour of MonthField range selection #924

OKremenovic opened this issue Feb 17, 2022 · 1 comment

Comments

@OKremenovic
Copy link
Contributor

OKremenovic commented Feb 17, 2022

Currently, you have to click and hold the mouse down if you want to select the month range.
It confuses the users because they think they should click once for the start of the range, and one more time to select the end of the range.

Would be nice if you could -

  1. click the first time to select the start of the month range =>
  2. keep the monthpicker open =>
  3. click another month to select the end of the range =>
  4. close the monthpicker.

The other solution is that we create two MonthFields that would act as the beginning and the ending of the month range.
The issue here is that MonthField always selects the beginning of the month. There is no option/property for selecting the last day of the month.
So we end up with the range that shows January-April but actually starts with 1 January and ends with 1 April, instead of 30 April.

@mstijak
Copy link
Member

mstijak commented Feb 17, 2022

This is intentional. One month is still a range. You can select also a year or a quarter with a single click.
Maybe we can add "two clicks" mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants