MichaelCereda/react-native-form-generator

Validation not returning correct valid poperty

florianbepunkt opened this issue · 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.

created a PR to fix it #85