kazupon / vue-validator

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

[3.0.0-alpha.2] validate method callback is called twice or more(?) #352

Closed sqal closed 7 years ago

sqal commented 7 years ago

vue & vue-validator version

vue@2.1.8, vue-validator@3.0.0-alpha.2

Reproduction Link

https://jsfiddle.net/sqal/21jse27u/

Steps to reproduce

  1. Open reproduction link
  2. Type something in input field
  3. In console you should see that it logs validate callback twice every time you enter a value into input field

I am guessing it's called twice because I use two validators in my example?. But still is this correct behaviour? I can't remember this callback being called multiple times in vue-validator 2.x, So just want to make sure whether or not this is a bug or by design. Thanks :)

kazupon commented 7 years ago

Thank you for your feedback.

yes, validate method have some issues. I'll improvement validate method.