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] Support trailing zeros on section with ordinal when the ordinal is empty #12688

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

flaviendelangle
Copy link
Member

Fixes #12678

@flaviendelangle flaviendelangle added bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! labels Apr 5, 2024
@flaviendelangle flaviendelangle self-assigned this Apr 5, 2024
@mui-bot
Copy link

mui-bot commented Apr 5, 2024

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

Generated by 🚫 dangerJS against 096fde1

section.contentType === 'digit' &&
!hasLeadingZeros &&
value.length === 1;
const shouldAddInvisibleSpace = ['input-rtl', 'input-ltr'].includes(target) && value.length === 1;
Copy link
Member Author

Choose a reason for hiding this comment

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

Small behavior change here, I'm adding the hidden character whenever the section is only 1 char long, otherwise it does not work for the bug in the linked issue

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 13, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

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! PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fields][DateField] fails to accept '22' as day keybord input in FR locale with format Do MMM YYYY
2 participants