malzariey / filament-daterangepicker-filter

MIT License
79 stars 39 forks source link

UI bug when selecting a date range #55

Closed bogusbd closed 3 months ago

bogusbd commented 6 months ago

Hello, I don’t quite understand the logic of the bug.... but try to select two dates that are both in the left block and the right block at the same time..... In this case, 4 numbers will be selected

on the DEMO page of the daterangepicker plugin this behavior is not reproduced

image

malzariey commented 6 months ago

This is not a bug, DateRangePicker separates each month in a separate calendar (column). In your case you have selected between two months while the beginning of the next month is in the previous calendar. Using the one column mode would solve your problem.

bogusbd commented 3 months ago

Hello, @malzariey If I'm not mistaken then this plugin uses this library http://www.daterangepicker.com/#google_vignette And there, by default, only 2 values are selected.

image

Perhaps there is some option that allows me to enable this behavior? I think this is more user-friendly behavior... Because when users see 4 selected values, it confuses them for a few seconds))

many thanks

malzariey commented 3 months ago

Sorry for the delay,

Issue fixed with v2.5.5.