garygreen / dominar

Lightweight bootstrap validator inspired by Laravel
http://garygreen.github.io/dominar/
22 stars 4 forks source link

Remote requests fire even if previous validations in the chain fail #23

Closed vlascik closed 8 years ago

vlascik commented 8 years ago

Remote requests fire even if previous validations in the chain fail, e.g. in rules: 'required|email|username_available' even if email fails,username_available fires a request to server anyway, which stresses the server needlessly.

garygreen commented 8 years ago

Yes that is a bit silly. Support needs to be added upstream in skaterdav85/validatorjs/issues/63

vlascik commented 8 years ago

ok, you're right, i'll close it here