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

fix: Resolved Discrepancy in Compare Label Display #2

Closed rajgop1 closed 5 months ago

rajgop1 commented 1 year ago

In this commit, I have addressed an issue related to label visibility when the showCompare flag is set to false. Previously, there was a discrepancy where the compare label was still visible despite the flag being turned off. With this fix, the compare label will now correctly remain hidden when the showCompare flag is set to false, ensuring consistent behavior in accordance with user expectations. This improvement enhances the accuracy and reliability of our application's label display functionality.

johnpolacek commented 5 months ago

Thanks. I actually fixed it before seeing your PR. Sorry about that - appreciate the help!