codaxy / cxjs

CxJS - Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.
https://cxjs.io
MIT License
482 stars 69 forks source link

Change the behaviour of MonthField range selection #924

Open OKremenovic opened 2 years ago

OKremenovic commented 2 years ago

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 commented 2 years ago

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.