Skip to content

Commit

Permalink
fix: return null if not dirty on isValid computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromir-hristov committed Jul 25, 2018
1 parent 77c69f9 commit df15584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- '9'
- '8'

before_script:
- npm run list

script: npm run test
2 changes: 1 addition & 1 deletion src/single-error-extractor-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
return { input: () => this.preferredValidator.$touch() }
},
isValid () {
return this.preferredValidator.$dirty && !this.hasErrors
return this.preferredValidator.$dirty ? !this.hasErrors : null
}
}
}

0 comments on commit df15584

Please sign in to comment.