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

Bug - DatePicker - Initially skips over a month on arrow click #9700

Closed
jpuzz0 opened this issue Oct 2, 2023 · 3 comments · Fixed by #9722
Closed

Bug - DatePicker - Initially skips over a month on arrow click #9700

jpuzz0 opened this issue Oct 2, 2023 · 3 comments · Fixed by #9722
Assignees
Milestone

Comments

@jpuzz0
Copy link
Contributor

jpuzz0 commented Oct 2, 2023

Describe the problem
Datepicker - when no value is provided and the current date is used as the initial date, clicking the arrow icon to shift to the next month results in a month being skipped over.

How do you reproduce the problem?
https://github.com/patternfly/patternfly-react/assets/96431149/8232400e-f0f0-4017-986f-8b5384c738db

Expected behavior
A month is not skipped over.

Is this issue blocking you?
Yes, it blocks quay from upgrading to the latest PF version of react-core.

Screenshots
If applicable, add screenshots to help explain the issue.

What is your environment?

  • macos
  • chrome
  • Version 117

What is your product and what release date are you targeting?
quay - mid November

@jpuzz0
Copy link
Contributor Author

jpuzz0 commented Oct 2, 2023

The problem is related to this CalendarMonth component change:
8991db1

@jpuzz0
Copy link
Contributor Author

jpuzz0 commented Oct 4, 2023

As seen in this updated video reproduction, I also cannot go back to a previous month after navigating forward once, and am unable to select November in the dropdown:
https://github.com/patternfly/patternfly-react/assets/96431149/7c08cc7a-3fca-47ac-8b09-74b988e1c8d1

Once I've navigated back to October, I'm then able to proceed to November.

@adamviktora
Copy link
Contributor

Issue occurs when local timezone is UTC minus some hours, could not reproduce in local time in Czech Republic, where time is UTC+2, working on a fix now

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

Successfully merging a pull request may close this issue.

4 participants