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,
I'm very excited to use this library - it's really going to help me get a handle on form state.
I did notice that when I pass in a default value through the schema itself, the rules don't take those values into account (perhaps they fire before the defaults are initialized?).
I noticed passing in initial state into formData results in the intended behavior, so that's what I'll do (which, in the broader scope of an application, probably makes more sense anyway), but I thought the current behavior may be a bug.
Many thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I'm very excited to use this library - it's really going to help me get a handle on form state.
I did notice that when I pass in a default value through the schema itself, the rules don't take those values into account (perhaps they fire before the defaults are initialized?).
I've provided a minimal example on StackBlitz: https://stackblitz.com/edit/react-jsonschema-form-conditionals-inital-state
I noticed passing in initial state into
formData
results in the intended behavior, so that's what I'll do (which, in the broader scope of an application, probably makes more sense anyway), but I thought the current behavior may be a bug.Many thanks!
The text was updated successfully, but these errors were encountered: