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

feat: Add support for inputTabIndex prop #289

Open dshafik opened 1 week ago

dshafik commented 1 week ago

This small PR adds support for an inputTabIndex prop to allow adding a tabIndex to the input. Note that to verify in the playground you need to use the dev tools and view the input element directly. Having a tabIndex will also trigger the onBlur handler to hide the popup.

dshafik commented 1 week ago

~I think for this to be complete, the behavior when tabbing to the next field must be fixed to hide the popup.~

done.