contributte / live-form-validation

:no_entry: Nice client-side live form validation for Nette Forms.
https://contributte.org/packages/contributte/live-form-validation.html
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

Why there is check for validity.valid if all rules came true? #40

Open matej116 opened 6 years ago

matej116 commented 6 years ago

There is check for validity.valid if elem.type === 'number' in the end of validateControl() function, which 1) has untranslatable error message and 2) is causing unexpected errors if there is condition rule and another rule after it.

More explanation for 2):

Please corrrect me if I am wrong, but I am seeing the check for validity.valid useless.