react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Form is reset if setState is called in a Component

Open fabarea opened this issue 8 years ago • 16 comments

Documentation read, yes!

Description

It looks the form is (wrongly) reset if some internal state changes within a component. Consider the following example https://jsfiddle.net/fab1en/954uLrrL/1/

  1. Edit the form
  2. Hit the second button which update some foo internal state
  3. Notice how the original value is reset in the form.

Form should not be reset like that. Am I missing something?

fabarea avatar Nov 11 '16 21:11 fabarea