johnpolacek / date-range-picker-for-shadcn

DateRangePicker is a reusable component for shadcn using Radix UI and Tailwind CSS. Includes preset date ranges, text entry, calendar selection and date comparison
https://date-range-picker-for-shadcn-demo.vercel.app/
MIT License
643 stars 24 forks source link

Click interactions for selecting From and To dates wrong? #12

Open bayhill opened 5 months ago

bayhill commented 5 months ago

Not sure, but it feels like this component is acting up, at least on our end.

To me, the expected behaviour is that any time I open the date range picker, the first click would always set the "From" date, and the second click would always set the "To" date. Currently, it feels like the picker doesn't always allow you to set the "From" date first, but actualy just updates the "To" date?