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

[DatePicker] StaticDatePicker does not auto scroll to selected year when toggled to year view #4642

Closed
ch4rlesyeo opened this issue Nov 12, 2021 · 4 comments
Labels
bug 🐛 Something doesn't work component: DatePicker The React component. duplicate This issue or pull request already exists

Comments

@ch4rlesyeo
Copy link

ch4rlesyeo commented Nov 12, 2021

Current behavior 😯

StaticDatePicker's year view does not auto scroll to selected year, have to scroll all the way down to find my selected date.

Expected behavior 🤔

StaticDatePicker should auto scroll to selected year, similar like our default DatePicker when toggled to year view.

Steps to reproduce 🕹

Please refer the official StaticDatePicker demo: https://mui.com/components/date-picker/#static-mode

Context 🔦

Your environment 🌎

@mui/lab - 5.0.0-alpha.54

@ch4rlesyeo ch4rlesyeo added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 12, 2021
@michaldudak michaldudak added bug 🐛 Something doesn't work component: DatePicker The React component. and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 18, 2021
@michaldudak michaldudak changed the title StaticDatePicker's does not auto scroll to selected year when toggled to year view [DatePicker] StaticDatePicker does not auto scroll to selected year when toggled to year view Nov 18, 2021
@michaldudak
Copy link
Member

Thanks for pointing this out, we'll look into it.

@boutahlilsoufiane
Copy link

boutahlilsoufiane commented Dec 23, 2021

Hi @michaldudak, I will work on it!

@rwieruch
Copy link

rwieruch commented Mar 9, 2022

Just confirming (and subscribing) that this still happens in "@mui/lab": "5.0.0-alpha.71" in case anyone runs into it.

@joserodolfofreitas joserodolfofreitas transferred this issue from mui/material-ui Apr 25, 2022
@flaviendelangle
Copy link
Member

Duplicates #4601, I close this one to keep a single discussion 👍

@flaviendelangle flaviendelangle added the duplicate This issue or pull request already exists label Apr 25, 2022
@flaviendelangle flaviendelangle removed their assignment Apr 25, 2022
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: DatePicker The React component. duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants