Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes out of sync calendar and input field #663

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajmc90
Copy link

@ajmc90 ajmc90 commented May 16, 2024

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.

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 ajmc90 changed the title Update DatePicker.tsx Enhance user experience with the calendar and input field. May 16, 2024
@ajmc90 ajmc90 changed the title Enhance user experience with the calendar and input field. Fixes out of sync calendar and input field May 16, 2024
@ajmc90
Copy link
Author

ajmc90 commented May 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant