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

External update of single value formData to 0 doesn't work.

Open Y-Less opened this issue 6 years ago • 0 comments

https://github.com/RxNT/react-jsonschema-form-conditionals/blob/c834a961d45a09ccbe23bfc30d87fee2a2c22aa9/src/applyRules.js#L80

This should be nextProps.formData !== undefined. Right now it just checks if it is falsey, but 0 is a valid form value.

Y-Less avatar Feb 05 '19 23:02 Y-Less