You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, i tried to share a playground but the url is not updating and i don't understand how to do it, but if you try to put this schema inside the playground and hit the plus button and again the plus button, you will see that "hashtags": [] and "related": [] arrays are created in formData even if the default selected option is "facebook" that doesn't have that properties. i don't know if this is a bug or maybe i misunderstood how to do things
If i try to change "hashtags" type to "number" for example it will not be included in formData
Thanks guys
Expected Behavior
Expected Behavior is doesn't have formData prepopulated with values that doesn't belong to the selected if clause of allOf
@dj-fiorex What you want to do is set the experimental_defaultFormStateBehavior on the Form, to set emptyobjectfields to populateRequiredDefaults . See this documentation.
Here is the updated playground with the changed field
Prerequisites
What theme are you using?
core
Version
5.17.0
Current Behavior
Hello guys, i tried to share a playground but the url is not updating and i don't understand how to do it, but if you try to put this schema inside the playground and hit the plus button and again the plus button, you will see that "hashtags": [] and "related": [] arrays are created in formData even if the default selected option is "facebook" that doesn't have that properties. i don't know if this is a bug or maybe i misunderstood how to do things
If i try to change "hashtags" type to "number" for example it will not be included in formData
Thanks guys
Expected Behavior
Expected Behavior is doesn't have formData prepopulated with values that doesn't belong to the selected if clause of allOf
Steps To Reproduce
Node 18
Latest version
Core theme
Also playground
Environment
Anything else?
Playground Link
This is my json schema
The text was updated successfully, but these errors were encountered: