kazupon / vue-validator

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

Top level validation events do not work with vue@1.0.22 and higher #233

Closed karol-f closed 8 years ago

karol-f commented 8 years ago

vue & vue-validator version

1.0.22, 2.1.1

Reproduction Link

https://jsfiddle.net/tzj8kjc9/

Steps to reproduce

Top level validation events don't work with vue@1.0.22. Try to change Vue version to e.g. 1.0.21 and you will see that it works. Example is from https://github.com/vuejs/vue-validator/blob/dev/example/event/top/index.html

What is Expected?

Top level validation events works.

What is actually happening?

Top level validation events don't work.

blocka commented 8 years ago

Ran into this today as well. For some reason, it was being evaluated as a statement expression, so I had to do @valid="onValid()"

aaronjpitts commented 8 years ago

I also have this issue.

karol-f commented 8 years ago

Thank you!

kazupon commented 8 years ago

release v2.1.2 please try it! https://github.com/vuejs/vue-validator/releases/tag/v2.1.2