-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: ensure isReadonly
applies to all non-literal date segments
#7969
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
base: main
Are you sure you want to change the base?
Conversation
isReadonly
applies to all non-literal DateSegments
isReadonly
applies to all non-literal DateSegments
isReadonly
applies to all non-literal DateSegments
isReadonly
applies to all non-literal DateSegments
isReadonly
applies to all non-literal date segments
08e945b
to
6a6319c
Compare
6a6319c
to
3ed43ed
Compare
Hey, thanks for the code. Could you provide some tests/add a control to storybook? I'm not able to reproduce the issue. |
@snowystinger Here is the reproduction: https://codesandbox.io/p/devbox/floral-wind-2fx6pc?workspaceId=ws_nU6d6H4r59ATf4jbZ5rYc You can see that only the literal elements carry the
This causes a mismatch between the To be honest i feel like both |
I'm not sure why the literals have readonly at all, the control is disabled, and the literals aren't interactive to being with. In aria, disabled almost the same as not existing. So it seems to me that readonly is unnecessary and shouldn't even be appearing there unless the control has Maybe we should back up, what is the use case you're trying to build? |
@snowystinger No use case besides styling being difficult right now for |
@nwidynski Just to clarify, the expectation here would be that |
@LFDanLu Yep. We had expected |
Found During Testing
When
isReadonly
is set, all segments should be non-editable.For RAC components, this ensures that when
isReadonly
is applied toDateField
orTimeField
, the non-literalDateSegments
haveisReadonly=true
andisEditable=false
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: