-
-
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
[fields] Unify fields behavior regardless of readOnly
flag
#13688
Conversation
Deploy preview: https://deploy-preview-13688--material-ui-x.netlify.app/ |
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.
Make sense to me 👌
Can be add some tests?
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.
I must have missed this PR last week, my bad
I've added an e2e test for it as unit tests once again seemed to behave differently. 🙈 |
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.