This PR fixes #53: The data-validate for confirmation get's attached to the original field. This makes for a bad user experience if you're triggering validations on blur. The solution would be to attached the data-validate to the confirmation field.
I've stripped out confirmation validation on the original object and applied a validation like object to the confirmation field. This ConfirmationValidator references the original validator and passes along it's kind and options methods, which are required in Judge::Validator.
@joecorcoran @dannysperry @saurabhbhatia I'd appreciate any feedback you have!
This PR fixes #53: The data-validate for confirmation get's attached to the original field. This makes for a bad user experience if you're triggering validations on blur. The solution would be to attached the data-validate to the confirmation field.
I've stripped out confirmation validation on the original object and applied a validation like object to the confirmation field. This
ConfirmationValidator
references the original validator and passes along it'skind
andoptions
methods, which are required inJudge::Validator
.@joecorcoran @dannysperry @saurabhbhatia I'd appreciate any feedback you have!
thanks