You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2023. It is now read-only.
material-date-range-picker: Add an option to disable maintaining the length of the date range when clicking on the calendar to move the start date.
By default, the previous behavior is kept.
If this option is set to false, moving the start date after the end date will collapse the range into a single day (the one you just clicked). This mirrors the existing behavior (shared by both configurations) where moving the end date after the start date collapses the range into a single day.
The following related behaviors are unchanged, regardless of configuration:
* Changing the end date already doesn't change the start date.
* Clicking-and-dragging the range endpoints always moves them independently. Dragging one endpoint past the other endpoint does not collapse the range, but rather allows the old start date to become the new end date (or vice versa).
Also update the demo to showcase some of the newer preset types (Quarter and Broadcast month).
PiperOrigin-RevId: 208853492
0 commit comments