Open dlopesa opened 1 month ago
<Datepicker autoHide={true} onSelectedDateChanged={(date) => { const localDate = new Date( date.getTime() - date.getTimezoneOffset() * 60000 ); const dateString = localDate.toISOString().split("T")[0]; console.log(dateString); // Log the date string setDate(dateString); }} className="dark" />
The auto hide does not work, even after selecting a date it does not disappear
After choosing a day it should disappear
Use a date picker
Video: https://github.com/themesberg/flowbite-react/assets/39463084/b48cd144-9ad7-48c7-a9ac-495ad84225cf
Steps to reproduce
Current behavior
The auto hide does not work, even after selecting a date it does not disappear
Expected behavior
After choosing a day it should disappear
Context
Use a date picker
Video: https://github.com/themesberg/flowbite-react/assets/39463084/b48cd144-9ad7-48c7-a9ac-495ad84225cf