Replies: 1 comment
-
I'm not sure if this will help anybody, but the answer to my problems was to set these fields. experimental_defaultFormStateBehavior={{
constAsDefaults: 'skipOneOf',
allOf: 'populateDefaults',
}} The allOf and constAsDefaults. Once they were set to the values above, everything worked as I expected. |
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
-
In this playground, When the form first loads, even though the first select has defaulted to true, the if condition below is not triggered even though the value matches the "const" value:
THe field currently has default set to an empty string like this:
If I remove the
"deafult": ""
, like in this playground, I get even worse behviour, even though a value is not selected, it is showing the fields in the"then"
field which does not make sense as the"const"
value is not"true"
.Can anyone shed any light on this, I don't understand how initial values work with
allOf
andif
,then
,else
.Beta Was this translation helpful? Give feedback.
All reactions