Default value is undefined for fields in conditional object #3651
Unanswered
cheungkayuk
asked this question in
Q&A
Replies: 1 comment
-
I found out that this bug will happen when object A is a direct child of object B.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I found that "default" attribute is not working properly for the field in "then" clause.
In this example, q2 will be shown if q1 is "Other" and q3 will be shown if q2 (default set to "No") is "Other".
But the actual result would be q2 being undefined and q3 is shown. This bug only appear in rjsf5 and seems that have not been raised by others. It sounds like an unexpected bug rather than a breaking changes from v4 to v5. Any Idea to fix that?
schema:
Beta Was this translation helpful? Give feedback.
All reactions