RXNT / react-jsonschema-form-conditionals

react-jsonschema-form-conditionals
Apache License 2.0
101 stars 46 forks source link

doRunRules function run twice if I have some rules to modify the formData. #84

Open toanqc opened 4 years ago

toanqc commented 4 years ago

So I have some rules that modify the formData of the JsonForm, e.g if I have the rule to copy the value from one property to another property in the formData, then I see that the doRunRules will run again since it compares the before-run-formData with the after-run-formData.

Line 56: https://github.com/RXNT/react-jsonschema-form-conditionals/blob/886cd95c6fe7f2788def2360ca1086dd134e67ab/src/rulesRunner.js#L56

@mavarazy: Any idea why we're doing this?