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

[DesktopDateTimePicker] year start in 1900 instead of the selected/current year #6187

Closed
2 tasks done
Vishal-Kank opened this issue Sep 17, 2022 · 4 comments
Closed
2 tasks done
Labels
component: pickers This is the name of the generic UI component, not the React module!

Comments

@Vishal-Kank
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:

1.click https://mui.com/x/react-date-pickers/date-time-picker/#responsiveness
2.select For Desktop date picker by clicking on its icon
3.click on year on top

Demo of same
https://stackblitz.com/run?file=demo.js

Current behavior 😯

When we click on year to change the year we can see the very start year 1900 we need to scroll down to see the current year.

Expected behavior 🤔

When we click on year to change the year we should be able to see the current or already selected year.

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@Vishal-Kank Vishal-Kank added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 17, 2022
@ZeeshanTamboli ZeeshanTamboli transferred this issue from mui/material-ui Sep 17, 2022
@yaredtsy
Copy link
Contributor

@Vishal-Kank I have tried to solve it. if the main contributors approve it I will send a pull request.
Solution Links

@alexfauquette
Copy link
Member

We already did a fix in #6089 that is currently on next but could be included in master too.

@thibaultadet
Copy link

I have a similar problem when entering the date manually with DatePicker, the year is automatically set in 1900s.
For example : if i want 2022, I'll start with 2 and 1902 is set automatically.
I don't know if I should open a new issue for this... I believe a similar issue was fixed for the DataGrid component (#1920)

@alexfauquette alexfauquette changed the title DesktopDateTimePicker on year click displaying the start year 1900 instead of the selected/current year [DesktopDateTimePicker] year start in 1900 instead of the selected/current year Sep 20, 2022
@alexfauquette
Copy link
Member

@thibaultadet Yes this is unrelated to this issue which is about scrolling

@cherniavskii cherniavskii added the component: pickers This is the name of the generic UI component, not the React module! label Sep 20, 2022
@zannager zannager removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

6 participants