You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.
Vue Version:Vue 2.0
Vue-Validator Version:v3.0.0-alpha.2
when page init $validation is empty object,if i bind :disabled="reasonInvalid" to submit button,this can not work on page first init.
How can I solve this problem?
The text was updated successfully, but these errors were encountered:
This demo can helps a little: vue-validator/examples/timing/index.html
But: demo have some issue. If one of the fields is a valid - submit button will become active.
Maybe you should add array to the data with all your validity fields, and mark them as valid/invalid durings validation (inside handleInput method), and unlock your submit button after all fields will become isValid: true
@gavrashenko I think vue-validator need provider an API that can be invoked before submit it to obtain the validation results,this is be best practice.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue Version:Vue 2.0
Vue-Validator Version:v3.0.0-alpha.2
when page init $validation is empty object,if i bind :disabled="reasonInvalid" to submit button,this can not work on page first init.
How can I solve this problem?
The text was updated successfully, but these errors were encountered: