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 }}
Repository navigation
Commit ba61d2a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(DateInput, DateTimeInput): the month/year wheels move the date like UIDatePicker's
Turning the month or year wheel behind the calendar title moves a chosen
date to the new month, keeping its day (clamped to the month's length and
the bounds; DateTimeInput keeps the time); with no date chosen the wheels
only move the calendar. The month wheel loops without changing the year,
and a year that takes the month out of range turns the month wheel onto the
nearest reachable month on UIDatePicker's column turn.
[fix] The month and year wheels behind the calendar title in the DateInput and DateTimeInput bottom sheets now behave like the iOS date picker's:
6
+
7
+
- Turning a wheel moves a chosen date to the new month and keeps its day, so October 15 becomes May 15. A day the month lacks becomes its last day, the result stays within `min` and `max`, and DateTimeInput keeps the time.
8
+
- With no date chosen, the wheels only move the calendar.
9
+
- The month wheel loops from December to January without changing the year.
10
+
- A year that takes the month out of range turns the month wheel onto the nearest reachable month instead of jumping.
0 commit comments