-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
not scrolling to future sibling
#14442
[DateRangePicker] Fix currentMonthCalendarPosition
not scrolling to future sibling
#14442
Conversation
Deploy preview: https://deploy-preview-14442--material-ui-x.netlify.app/ |
c92495a
to
4e046d8
Compare
currentMonthCalendarPosition
not scrolling to future siblingcurrentMonthCalendarPosition
not scrolling to future sibling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for noticing and handling this issue! 🙏
I took the liberty to add a test asserting this behavior.
@GMchris Your changes impact the commercially licensed code. For any changes of this nature, we require contributors to sign the MUI’s Contributor License Agreement (CLA).
However, this change looks like a pretty trivial bugfix that we could accept without the CLA process if we both agree that the fix is trivial: https://www.notion.so/mui-org/CLA-Contributor-License-Agreement-92ece655b1584b10b00e4de9e67eedb0?pvs=4#ede845886e494cb4b802a67563152130.
WDYT?
If you wish to go through the CLA process, please let me know and follow this guide. 😉
Hey, @LukasTy , I've followed the CLA guide and submitted both form and email. |
packages/x-date-pickers/src/DateCalendar/tests/localization.DateCalendar.test.tsx
Outdated
Show resolved
Hide resolved
This reverts commit dd06429.
@LukasTy Two side thoughts:
|
Thank you for the insights @oliviertassinari.
Thanks, next time I will either not approve the PR or add the necessary label until the CLA topic is resolved.
It can be -10 or +10 if someone needs it, just like anyone is free to specify whatever amount of |
@LukasTy Ah, ok, so The thing in my mind was about: how can a developer control the view displayed in the pickers? react-day-pickers allows people to https://daypicker.dev/docs/navigation#onmonthchange. A month prop sounds too specific though, I would expect a date prop that the component ensures is "visible" in the UI.
|
Great point, thank you for bringing up this possible need. 👍 |
… future sibling (mui#14442) Co-authored-by: Lukas <llukas.tyla@gmail.com>
fixes #14418