kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

$setValidationErrors does not change classes on input #239

Closed judocode closed 8 years ago

judocode commented 8 years ago

$setValidationErrors will change the appropriate object to valid/invalid, however, it does not change the classes.

In the following example you can see that after $setValidationErrors is triggerd, the username's object changes from invalid: false and valid: true to invalid: true and valid: false, however, the class does not change from valid to invalid.

http://www.webpackbin.com/E1TaWZvz-