Skip to content

Commit 5b8bd23

Browse files
committed
rename on-validated to validated
1 parent 356241b commit 5b8bd23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/formGenerator.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ div
223223
});
224224
225225
let isValid = this.errors.length == 0;
226-
this.$emit('on-validated', isValid, this.errors);
226+
this.$emit("validated", isValid, this.errors);
227227
return isValid;
228228
},
229229

test/unit/specs/VueFormGenerator.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ describe("VueFormGenerator.vue", () => {
681681
let elm = document.createElement("div");
682682
vm = new Vue({
683683
// eslint-disable-next-line quotes
684-
template: `<vue-form-generator :schema="schema" :model="model" :options="options" :multiple="false" ref="form" @on-validated="onValidated"></vue-form-generator>`,
684+
template: `<vue-form-generator :schema="schema" :model="model" :options="options" :multiple="false" ref="form" @validated="onValidated"></vue-form-generator>`,
685685
data: {
686686
schema,
687687
model,

0 commit comments

Comments
 (0)