Repository navigation
[6.x] Bring back month/year navigation in the date picker - #15892
Merged
Merged
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a1d550-1311-76f1-becc-cabba2f6801c Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request brings back the ability to jump to a specific month and year from the date picker's calendar, which was possible in v5 but got lost in v6.
Clicking the calendar heading (eg. "November 2026") now opens a month grid. From there, clicking the year opens a year grid, which pages through 12 years at a time. Picking a month moves the calendar to that month, without changing the field's value.
It's built on Reka UI's
MonthPickerandYearPickercomponents, and it lives in the sharedCalendarcomponent, so both theDatePickerandDateRangePickerget it. It also respects theearliest_dateandlatest_dateconfig options, and it's disabled when the field is read-only.Amp thread: https://ampcode.com/threads/T-01a1d550-1311-76f1-becc-cabba2f6801c
Screenshots
Closes statamic/ideas#1501