gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
6.09k stars 732 forks source link

fix: remove selectionStates from useGetModifiers() #2586

Closed gpbl closed 3 days ago

gpbl commented 3 days ago

Before implementing changes to the useGetModifiers function in #2578, I’m adding some tests.

I could find a bug where getModifiers was returning always an empty selected modifier. The selection modifiers are handled separately so they shouldn't appear here.

cc @rodgobbi