palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.67k stars 2.17k forks source link

DateTime2 DatePicker no longer limits month select options when minDate specified #6891

Open bvandercar-vt opened 3 months ago

bvandercar-vt commented 3 months ago

DateTime2 DatePicker no longer limits month select options when minDate specified.

Steps to see:

1) Go to https://blueprintjs.com/docs/#datetime2/date-picker3 2) Select min date "1 week ago" 3) BUG: All 12 months are still displayed as options in the month select. Previously (DateTime 1), months would have been reduced to only the available months.

evansjohnson commented 3 months ago

confirmed locally by changing the datetime example with min date to today's date

Screenshot 2024-07-03 at 4 03 31 PM

I wonder if this is an issue with the underlying react-day-picker library from v7 to v8

bvandercar-vt commented 3 months ago

I wonder if this is an issue with the underlying react-day-picker library from v7 to v8

I think so actually. Would need to report the bug there.