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
In some cases the range component is pretty inconvenient.
The problem occurs when you have the min/max constraint being dependent of the first month you select (from).
The use case is:
"We want to force the user to select maximum 1 year ahead"
The user selects the start month (from): say january 2018
The code then dynamically updates the max constraint to the selected month + 1 year (to December 2018)
The user selects the end month (to): say December 2018
The picker closes and at this point everything is ok
The input now shows January 2018 > December 2018
Now the user wants to select another range in the future (2019):
The user reopens the picker
The picker has the previous value preselected (Jan 2018 > Dec. 2018)
The user wants to select a month in 2019 as the start month
That's when this is inconvenient. Since the max is currently December 2018 and is applying to both start and end, the user can't move forward the year on the start month. He needs to first change the year on the end month picker, and then move the start month picker.
I guess being able to choose whether the max constraint is applying on both start and end or only on end would simply fix this.
What do you think?
The text was updated successfully, but these errors were encountered:
In some cases the range component is pretty inconvenient.
The problem occurs when you have the min/max constraint being dependent of the first month you select (from).
The use case is:
"We want to force the user to select maximum 1 year ahead"
January 2018 > December 2018
Now the user wants to select another range in the future (2019):
That's when this is inconvenient. Since the max is currently December 2018 and is applying to both start and end, the user can't move forward the year on the start month. He needs to first change the year on the end month picker, and then move the start month picker.
I guess being able to choose whether the max constraint is applying on both start and end or only on end would simply fix this.
What do you think?
The text was updated successfully, but these errors were encountered: