This release includes a new reverseYears prop, a range selection fix, and a build update to fix issues with source maps.
Reversing the Years in the Dropdown
When using captionLayout='dropdown', set reverseYears to reverse the years listed in the dropdown: the most recent year will appear first.
<DayPicker captionLayout="dropdown" reverseYears />See it in action in the playground.
What's Changed
- feat: add
reverseYearsprop by @gpbl in #2822 - fix: select the same day in range mode when range is open and min prop is 0 by @rodgobbi in #2816
- build: removed source maps and
srcdirectory from package by @gpbl in #2812 - build: update
date-fns/tzdependency by @gpbl in #2823
Full Changelog: v9.8.1...v9.9.0