diff --git a/src/validations/base.js b/src/validations/base.js index a9e5b70..6a15664 100644 --- a/src/validations/base.js +++ b/src/validations/base.js @@ -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) { diff --git a/test/specs/event.js b/test/specs/event.js index b19aee4..15dae10 100644 --- a/test/specs/event.js +++ b/test/specs/event.js @@ -165,6 +165,7 @@ describe('event', () => { input1.value = 'foo' input2.value = 'bar' trigger(input1, 'input') + trigger(input2, 'input') }) }) })