Skip to content

Commit 0693334

Browse files
jacekkarczmarczykKaelWD
authored andcommitted
fix(validatable): revalidate on rules change (#4640)
* fix(validatable): revalidate on rules change fixes #4635 * style: remove unused params
1 parent bd63a95 commit 0693334

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mixins/validatable.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ export default {
113113

114114
watch: {
115115
rules: {
116-
handler (newVal, oldVal) {
117-
// TODO: This handler seems to trigger when input changes, even though
118-
// rules array stays the same? Solved it like this for now
119-
if (newVal.length === oldVal.length) return
120-
116+
handler () {
121117
this.validate()
122118
},
123119
deep: true

0 commit comments

Comments
 (0)