From 8a1da7619e23203f8172dfa8f896eb84862d6d2e Mon Sep 17 00:00:00 2001 From: kevinkosterr Date: Fri, 15 Nov 2024 16:58:29 +0100 Subject: [PATCH] fix(validation): fix onValidated call --- src/mixins/abstractField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/abstractField.js b/src/mixins/abstractField.js index b5a8d48..5320e00 100644 --- a/src/mixins/abstractField.js +++ b/src/mixins/abstractField.js @@ -87,7 +87,7 @@ export default { this.errors = toUniqueArray(errors) if (isFunction(this.field.onValidated)) { - this.field.onValidated.call(this, this.model, results, this.field) + this.field.onValidated.call(this, this.model, errors, this.field) } else if (this.field.onValidated !== undefined) { throw new Error('onValidated property must be of type `function`, on ' + this.field.name) }