You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you put a typo in your rules like accidentally putting:
rules: {
myField: { require:true }
}
Instead of putting:
rules: {
myField: { required:true }
}
You will observe undefined behavior. Obscure stack traces about calling .call() on undefined, and forms submitting even though they are invalid.
If I put a typo, I would expect an exception that says "the rule 'require' for the element 'myField' has no corresponding method" and for the field to be marked as invalid & prevent submission.
In debugging this, it seems to confuse a lot of users. There are tons of unanswered questions on stack overflow stemming from this issue.
The text was updated successfully, but these errors were encountered:
If you put a typo in your rules like accidentally putting:
Instead of putting:
You will observe undefined behavior. Obscure stack traces about calling .call() on undefined, and forms submitting even though they are invalid.
If I put a typo, I would expect an exception that says "the rule 'require' for the element 'myField' has no corresponding method" and for the field to be marked as invalid & prevent submission.
In debugging this, it seems to confuse a lot of users. There are tons of unanswered questions on stack overflow stemming from this issue.
The text was updated successfully, but these errors were encountered: