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

[fields] Fix new index calculation on letter section #13310

Merged

Conversation

arthurbalduini
Copy link
Member

@arthurbalduini arthurbalduini requested a review from LukasTy May 30, 2024 12:01
@mui-bot
Copy link

mui-bot commented May 30, 2024

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

Generated by 🚫 dangerJS against 5f9d996

@arthurbalduini arthurbalduini added the component: pickers This is the name of the generic UI component, not the React module! label May 30, 2024
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.

At first glance the solution makes a lot of sense.
Thanks for taking care of it!

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.

I'll let @LukasTy have the final approval here, but for me it's looking great 🥳

@LukasTy LukasTy changed the title Implements adjust for new index calculation on letter section [fields] Fix new index calculation on letter section Jun 5, 2024
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

Thank you for finding and taking care of this issue! 🙏 💯 🎉
Great work! 👏
P.S. WDYT about adding a needs cherry-pick label to cherry-pick this fix to v6.x? 🤔

@LukasTy LukasTy added bug 🐛 Something doesn't work feature: Keyboard editing Related to the pickers keyboard edition labels Jun 5, 2024
@arthurbalduini arthurbalduini added the needs cherry-pick The PR should be cherry-picked to master after merge label Jun 5, 2024
format: adapter.formats.year,
defaultValue: adapter.date('0003-01-15'),
key: 'PageDown',
expectedValue: adapter.lib === 'dayjs' ? '1898' : '9998',
Copy link
Member

Choose a reason for hiding this comment

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

@flaviendelangle WDYT about making the minimum and maximum aware of the minDate and maxDate?
Didn't we do it only, because shouldDisableYear exists? 🤔
IMHO, the current behavior seems a bit strange, especially given the differences in adapters. 🙈

Copy link
Member

Choose a reason for hiding this comment

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

How would this behave for sections other than year?
For year, I do agree that having the min/max respect the validation (even if shouldDisableYear is not supported) would be a plus.
For the other fields, I'm not sure what the exact behavior should be.

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! feature: Keyboard editing Related to the pickers keyboard edition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fields][TimeField] Adapt delta calculation for meridiem
4 participants