Skip to content

Commit

Permalink
fix $validator usage errors (epicmaxco#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag authored Dec 2, 2019
1 parent 200d4a0 commit eff39e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/components/forms/form-elements/FormElements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,6 @@ export default {
this[field] = ''
},
},
created () {
this.$nextTick(() => {
this.$validator.validateAll()
})
},
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/chat/SetupProfileTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
return isValid
},
validateFormField (fieldName) {
this.$validator.validate(fieldName, this[fieldName])
this.$validator && this.$validator.validate(fieldName, this[fieldName])
},
},
}
Expand Down

0 comments on commit eff39e6

Please sign in to comment.