react-native-form-generator icon indicating copy to clipboard operation
react-native-form-generator copied to clipboard

Validation not returning correct valid poperty

Open florianbepunkt opened this issue 8 years ago • 1 comments

I run with your example and added a console.log to helper text to log self.refs.registrationForm.refs.first_name

Steps to reproduce:

  • Enter some text in first name field
  • Delete the text (so field is empty). Validation Error should show now. Valid property of field is set to false.
  • Enter text again. When you enter text second time, the valid property stays false… validationErrors array is updated. Expected behaviour would be, that valid property is true again.

florianbepunkt avatar Nov 23 '16 13:11 florianbepunkt

created a PR to fix it #85

florianbepunkt avatar Nov 23 '16 13:11 florianbepunkt