Skip to content

Commit

Permalink
fix(validatable): revalidate on rules change (#4640)
Browse files Browse the repository at this point in the history
* fix(validatable): revalidate on rules change

fixes #4635

* style: remove unused params
  • Loading branch information
jacekkarczmarczyk authored and KaelWD committed Jul 18, 2018
1 parent bd63a95 commit 0693334
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/mixins/validatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ export default {

watch: {
rules: {
handler (newVal, oldVal) {
// TODO: This handler seems to trigger when input changes, even though
// rules array stays the same? Solved it like this for now
if (newVal.length === oldVal.length) return

handler () {
this.validate()
},
deep: true
Expand Down

0 comments on commit 0693334

Please sign in to comment.