kazupon / vue-validator

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

How to clear all validator's result? #265

Closed ibufu closed 8 years ago

ibufu commented 8 years ago

For example, there is a dialog contains a form. And user inputs invalid data.So, there is some error message.Then user closes the dialog and opens it again. The data user input need to be clear and the old error message also need to be clear.

kazupon commented 8 years ago

You can use the $setValidationErrors. See the detail: http://vuejs.github.io/vue-validator/en/api.html#setvalidationerrors-errors-

kazupon commented 8 years ago

Close (in-activity)