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
with vuelidate ,i set button ,and validate if this is disabled or not
code: <button @click="add()" :class="{'disabled':$v.$dirty&&$v.$error }">add</button>
but when i change the code like below , it was fine,and for why?
code: <button@click="add()" :disabled="$v.$dirty&&$v.$error">add</button>
The text was updated successfully, but these errors were encountered:
with vuelidate ,i set button ,and validate if this is disabled or not
code:
<button @click="add()" :class="{'disabled':$v.$dirty&&$v.$error }">add</button>
but when i change the code like below , it was fine,and for why?
code:
<button@click="add()" :disabled="$v.$dirty&&$v.$error">add</button>
The text was updated successfully, but these errors were encountered: