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] Unify fields behavior regardless of readOnly flag #13688

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Jul 1, 2024

Fixes #13679

The behavior of the field component does not seem to differ on native date input and React Spectrum.
I suggest we also go the same route and not create a specific behavior (disallowing certain features like sometimes not marking the selection section) when the readOnly flag is toggled.

This is also related to #12576 as #12609 had related changes.

@LukasTy LukasTy added 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 labels Jul 1, 2024
@LukasTy LukasTy self-assigned this Jul 1, 2024
@mui-bot
Copy link

mui-bot commented Jul 1, 2024

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

Generated by 🚫 dangerJS against 617f315

@LukasTy LukasTy requested a review from a team July 1, 2024 15:56
@LukasTy LukasTy marked this pull request as ready for review July 1, 2024 15:56
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.

Make sense to me 👌

Can be add some tests?

Copy link
Member

@arthurbalduini arthurbalduini left a comment

Choose a reason for hiding this comment

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

I must have missed this PR last week, my bad

@LukasTy
Copy link
Member Author

LukasTy commented Jul 11, 2024

Can be add some tests?

I've added an e2e test for it as unit tests once again seemed to behave differently. 🙈

@LukasTy LukasTy merged commit ed833b5 into mui:master Jul 11, 2024
15 checks passed
@LukasTy LukasTy deleted the fix-fields-readonly-behavior branch July 11, 2024 11:39
DungTiger pushed a commit to DungTiger/mui-x that referenced this pull request Jul 23, 2024
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
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] "Format" is still being used as MobileDatePicker input value, even after the dialog is closed
4 participants