backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

Add option to stop calling invalid after first instance of failure

Open jchn opened this issue 10 years ago • 0 comments

Adds stopAfterFirstError argument to the defaultoptions which is false by default, so everything should work exactly the same as it always has by default.

If this option is set to true, the invalid method isn't called anymore after the first instance of an error. This is useful if you only want to show feedback for the first instance of a failure in a form.

jchn avatar Apr 09 '14 11:04 jchn