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] MobileDatePicker In year selection current year is scrolled out of view #10126

Closed
2 tasks done
Nikhil1920 opened this issue Aug 23, 2023 · 1 comment · Fixed by #10135
Closed
2 tasks done
Assignees
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! mobile Targets mobile platform

Comments

@Nikhil1920
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:
https://codesandbox.io/s/mui-x-mobiledatepicker-issue-rjs75c

Open on a mobile device:
https://rjs75c.csb.app/

Steps:

  1. Add a <MobileDatePicker> component with year view
  2. Open the page in a mobile device

I was not able to reproduce the issue on a desktop with changed dimensions. It only occurs on mobile devices and tablets. Occurs on both chrome and firefox

Current behavior 😯

photo_2023-08-24_02-23-16

The current year is scrolled out of view when trying to select a year

Expected behavior 🤔

photo_2023-08-24_02-23-22

The current year should be centered

Context 🔦

No response

Your environment 🌎

No response

Order ID or Support key 💳 (optional)

No response

@Nikhil1920 Nikhil1920 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 23, 2023
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Aug 24, 2023
@LukasTy LukasTy added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 25, 2023
@LukasTy LukasTy changed the title MobileDatePicker In year selection current year is scrolled out of view [pickers] MobileDatePicker In year selection current year is scrolled out of view Aug 25, 2023
@LukasTy LukasTy added the mobile Targets mobile platform label Aug 25, 2023
@LukasTy
Copy link
Member

LukasTy commented Aug 25, 2023

Thank you for reporting this issue.
I can confirm the issue and that it is only reproducible on Android.

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! mobile Targets mobile platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants