kazupon / vue-validator

:white_check_mark: Validator component for Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[3.0.0-alpha.2] validation component is not available in mounted hook?

sqal opened this issue · comments

commented

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.

+1 too!

commented

+1