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] validation component is not available in mounted hook? #353

Open sqal opened 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/u0phhxLa/

What is Expected?

I am trying to get validation component like in example provided above, but as you can see, in mounted state it is undefined and it's only ready when I change something in one of the fields.

What is actually happening?

validation component is undefined when accessing it inside mounted hook.

Not sure if bug or feature, but would appreciate your clarification on this one :) Thanks.

zodman commented 7 years ago

+1 too!

mesis commented 7 years ago

+1

ddtramp commented 7 years ago

+1