cferdinandi / validate

A lightweight form validation script.
MIT License
230 stars 39 forks source link

Remove corrected errors in submit handler #58

Closed michapietsch closed 6 years ago

michapietsch commented 6 years ago

Hi,

the submit handler does not remove previous errors that were fixed. When the user makes another attempt to submit it would be useful to reduce the errors to only show those that are persisting.

Or is this behavior intentional?

Regards, Micha

cferdinandi commented 6 years ago

Hmm... digging back into this code, the fields are supposed to reevaluate on blur, which should happen when you submit, but wouldn't if you submitted by hitting enter on your keyboard.

Is that what you're seeing?

cferdinandi commented 6 years ago

@michapietsch See above. Hoping to get clarification around the issue.

cferdinandi commented 6 years ago

Closing due to inactivity. Will reopen if submitter reengages.