-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(select/radio): Accept just the values in options (plus ''
and null
for backward-compatibility)
#18
Conversation
This reverts commit 3312f29.
58e0efc
to
93fbd2e
Compare
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.
Still going through this - code looks fine for now but also going through the failures we have internally against the pipeline
''
and null
for backward-compatibility)
6c7c1d7
to
eaabaf7
Compare
Approving this one based on passing pieplines internally |
|
||
We'd need to implement a feature_flag/transition deprecation warning | ||
to give devs the time to adapt their integrations before we fix this behavior. | ||
Check the PR#18 and tests for more details. |
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.
@gabrielseco @brennj As promised, I've recorded a public loom (and added it to the PR description) explaining this workaround with examples.
Hopefully, it will help you better understand/explain this in the future when we come back to this to and create the migration phase to stop accepting ""
and null
when we shouldn't.
1. Description
Fix select and radio yup schemas to only validate the values provided by a json schema
2. How to test this
I created a playground with vite where you can test the different fields like select and radio but I think we should remove it from this PR and moved it to a new one to have a proper release with a good developer experience.The playground demo is based on the codesandbox from our docs
PS: I'll be on PTO from tomorrow, I'll be back on the 3th of July
Edit by @sandrina-p: