-
Notifications
You must be signed in to change notification settings - Fork 6
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(fieldset): support root conditionals for fieldsets #23
fix(fieldset): support root conditionals for fieldsets #23
Conversation
819d492
to
f6c8308
Compare
This reverts commit 3312f29.
ee05936
to
1c7ed57
Compare
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.
One thing I'm struggling to understand going through the example
Why are the required messages not showing up? Is this an issue just with our components? But we know radio fields definitely have required error messages when needed 🤔 I'm nearly certain i've seen them in fieldsets too.
Still looking through this
@brennj I have encountered this issue where the required message didn't show up, only the "invalid" one. I didn't look into the cause (since the actual issue was something else), but this thread might help. |
I think we'll be good to merge this one in itself, but pending we fix the other branch first |
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@remoteoss/json-schema-form", | |||
"version": "0.4.0-beta.0", | |||
"version": "0.4.1-dev.20230703082439", |
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.
just need to change this and i think we're all good :)
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 think we'll be good to merge this one in itself, but pending we fix the other branch first
Cool! Let me wrap up the #18 first and then I'll come back to this one.
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.
#18 merged, let me rebase this one, it will take a few minutes, as this is a branch of branch 👀
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.
on standby!
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.
Ah, I can't rebase as Gabriel has used merged before, so I used merge too. Easy and quick. it's whatever as we'll squash it all afterward.
I've also reverted the -dev
version with npm run version_as_main
3b007cf
to
ec2b2eb
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.
lets gooo
Requires #18. Please review that one first. Then come back there.
This PR ensures that root conditionals (
if
) that have effects (then
) in fieldsets are applied correctly.Do not mix the two concepts:
Steps to replicate
Use the following JSON Schema to replicate the reported bug in our JSF playground:
How to test this:
Tip for Remoters: To quickly preview this branch in our Playground, go to
useCreateHeadlessForm.js
(our internal hook), and replace the first line: