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

[pickers][DesktopDatePicker] entering date with keyboard breaks after timezone prop changed #15628

Closed
PRe-SON opened this issue Nov 27, 2024 · 1 comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@PRe-SON
Copy link

PRe-SON commented Nov 27, 2024

Steps to reproduce

Steps:

  1. Open this link to live example: (required)
    https://codesandbox.io/p/sandbox/quizzical-bush-vqslzr
  2. click button
  3. try to enter a date with the keyboard

Current behavior

While writing the number for the year, the number for the day shifts by 1.

Expected behavior

Date should remain the way it was typed.

Context

This seems to happen when the value passed to the timezone prop changes: In this example, it starts off as undefined, and then changes to "Europe/Berlin". Note that this all happens before the date is ever entered, and the bug only seems to occur only the first time the date is being entered.

Your environment

No response

Search keywords: DesktopDatePicker timezone keyboard date

@PRe-SON PRe-SON added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 27, 2024
@michelengelen
Copy link
Member

duplicate of #9653

@michelengelen michelengelen added duplicate This issue or pull request already exists component: pickers This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 28, 2024
@michelengelen michelengelen changed the title DesktopDatePicker: entering date with keyboard breaks after timezone prop changed [pickers][DesktopDatePicker] entering date with keyboard breaks after timezone prop changed Nov 28, 2024
@michelengelen michelengelen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants