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

[DateRangePicker] Fix currentMonthCalendarPosition prop behavior on mobile #16455

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Feb 4, 2025

Fixes #15943.

Override the currentMonthCalendarPosition prop to 1 on Mobile Pickers since we override calendars to avoid inconsistent behavior.

@LukasTy LukasTy added bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! component: DateRangePicker The React component. needs cherry-pick The PR should be cherry-picked to master after merge v7.x labels Feb 4, 2025
@LukasTy LukasTy self-assigned this Feb 4, 2025
@mui-bot
Copy link

mui-bot commented Feb 4, 2025

Deploy preview: https://deploy-preview-16455--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 1131e7f

Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👌

@LukasTy LukasTy merged commit 6d5be78 into mui:master Feb 4, 2025
28 checks passed
Copy link

github-actions bot commented Feb 4, 2025

Cherry-pick PRs will be created targeting branches: v7.x

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: DateRangePicker The React component. component: pickers This is the name of the generic UI component, not the React module! needs cherry-pick The PR should be cherry-picked to master after merge v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pickers] Date Range Picker with currentMonthCalendarPosition=2 shows wrong range in mobile
3 participants