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

KeyboardTimePicker also changes the date when modifying the time using the keyboard #2193

Closed
2 tasks done
tran-simon opened this issue Jun 14, 2021 · 3 comments
Closed
2 tasks done
Labels
status: needs triage These issues haven't been looked at yet by a maintainer.

Comments

@tran-simon
Copy link

tran-simon commented Jun 14, 2021

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

With the KeyboardTimePicker default value at "2021-06-10T12:00:00", changing the time using the keyboard to 12:30 also changes the date to today's date. Using the picker popup doesn't change the date

Expected Behavior 🤔

The behavior should be the same whether the users uses the keyboard or the popup picker

Steps to Reproduce 🕹

https://codesandbox.io/s/keyboardtimepicker-bug-zqeh4?file=/src/App.tsx

Steps:

  1. Have a KeyboardTimePicker with the initial date value not in today's date
  2. Change the time using the keyboard
  3. The date changes
Tech Version
@material-ui/core v4.11.4
@material-ui/pickers v.3.3.10
React v.17.0.2
@tran-simon tran-simon added the status: needs triage These issues haven't been looked at yet by a maintainer. label Jun 14, 2021
@tran-simon
Copy link
Author

@oliviertassinari Why was this closed?

@oliviertassinari
Copy link
Member

#2157

@tran-simon
Copy link
Author

I see.

Since the bug is still present in Material-UI Alpha 5.0.0, I've opened the same issue there: mui/material-ui#26799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage These issues haven't been looked at yet by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants