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
Currently if you have a picker with, for example, 2023-08-11 selected, then use setMin() to change the minimum date to 2023-08-16, an error is thrown "Out-of-range" error is thrown.
It would be useful if there was an option for setMin() to adjust the selected date to the new minimum.
I can appreciate that this may not be a desirable default, so perhaps an optional (bool)adjustSelectedIfOutOfRange argument would be better. Or a separate method altogether.
I suppose the same reasoning applies to setMax(), though I personally haven't encountered that.
The text was updated successfully, but these errors were encountered:
Currently if you have a picker with, for example,
2023-08-11
selected, then usesetMin()
to change the minimum date to2023-08-16
, an error is thrown "Out-of-range" error is thrown.It would be useful if there was an option for
setMin()
to adjust the selected date to the new minimum.I can appreciate that this may not be a desirable default, so perhaps an optional
(bool)adjustSelectedIfOutOfRange
argument would be better. Or a separate method altogether.I suppose the same reasoning applies to
setMax()
, though I personally haven't encountered that.The text was updated successfully, but these errors were encountered: