vtex/react-hook-form-jsonschema

Default Values not working

Opened this issue · 1 comments

Describe the bug
In form context when I apply default values, it is not accessible from anywhere, and neither it's getting prefilled in inputs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to CodeSandBox
  2. Check default values object in <FormContext ... />
  3. Check the output inputs. It's not getting prefilled

Expected behavior
Basic inputs should have default values which were provided to <FormContext

Additional context
If this is not implemented yet, then at least can you tell how to fix it so that i can make PR.

axi42 commented

Did you manage to get the defaultValues to work?