wojtekmaj / react-date-picker

A date picker for your React app.
https://projects.wojtekmaj.pl/react-date-picker
MIT License
1.26k stars 195 forks source link

Fixes out of sync calendar and input field #663

Open ajmc90 opened 4 months ago

ajmc90 commented 4 months ago

Enhance calendar visibility conditional rendering

This commit introduces an improvement where the calendar is now displayed only when the isOpen variable is set to true. This change addresses the bug where inconsistencies occurred if a user attempted to alter the date directly via the calendar widget and subsequently tried to modify the date through the corresponding input field. The fix ensures a smoother user experience by maintaining the expected behavior of the calendar's visibility and interaction.

ajmc90 commented 4 months ago

Here is a video about the problem and the solution. https://github.com/wojtekmaj/react-date-picker/assets/1001684/1aa4e4a0-2268-4de4-9220-9e3fee460fb1