Password confirmation and password are equal but validation is still triggering JOI in React component
问题 I creating a register form and the problems accurs while try validating password confirmation. I am using the last version of JOI-Browser. I tried the code below and the validation error was triggered even though password and password confirmation have the same values. password: Joi.string() .min(5) .required(), passwordConfirmation: Joi.ref("password") Here is my state object: password: "12345" passwordConfirmation: "12345" username: "" errors: {…} passwordConfirmation: "\