onesine / react-tailwindcss-datepicker

Modern date range picker component for React using Tailwind 3 and dayjs. Alternative to Litepie Datepicker.
https://react-tailwindcss-datepicker.vercel.app/
MIT License
552 stars 169 forks source link

fix: should wait for button click when both asSingle and showFooter are true #229

Closed Elbarae1921 closed 3 months ago

Elbarae1921 commented 9 months ago

This PR addresses #140.

Problem: When asSingle is enabled, the datepicker ignores showFooter and submits when a value is picked instead of waiting for button click.

Solution: check if showFooter is enabled before submitting.

onesine commented 3 months ago

Hi @Elbarae1921 👋. Sorry for the late reply. Thanks for the contribution.