React-validator-demo icon indicating copy to clipboard operation
React-validator-demo copied to clipboard

ErrorsForm.js equals doesn't work

Open ruco1996 opened this issue 6 years ago • 2 comments

Hi, im trying to implement a password validation and it doesn't work.

At this point: (in useInputForm) image The "ValidationRules" prints: {isRequired: true, equals: ""} meanwhile the validation prints: {isRequired: true, equals: "1234567"}.

My Textfield looks like: image

Its neccessary to put validation inside useState? Thanks!

ruco1996 avatar Jul 24 '19 09:07 ruco1996

Hello @ruco1996 ,

My source code was bugged. I updated the repository. Could you please give it a try and let me know if it works now?

You shouldn't have to put validation inside useState, though I'm not entirely sure I get what you mean.

Best regards, Dana

DJanoskova avatar Jul 28 '19 10:07 DJanoskova

Still not working --> equals validation for password verification.

kenjoegolo avatar Oct 04 '19 06:10 kenjoegolo