Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
fix(validate): validation every time issue
Browse files Browse the repository at this point in the history
Closes #179
  • Loading branch information
kazupon committed Mar 28, 2016
1 parent 6664b51 commit 606875c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/validations/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class BaseValidation {
this.willUpdateDirty(el)
this.willUpdateModified(el)

this._validator.validate(this.field)
this._validator.validate({ field: this.field })
}

validate (cb, noopable = false) {
Expand Down
1 change: 1 addition & 0 deletions test/specs/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ describe('event', () => {
input1.value = 'foo'
input2.value = 'bar'
trigger(input1, 'input')
trigger(input2, 'input')
})
})
})
Expand Down

0 comments on commit 606875c

Please sign in to comment.