Skip to content

Commit 04460af

Browse files
Merge pull request #519 from lionel-bijaoui/lb_fix_class_error_group
formGroup now use the correct class name for error when looking for them
2 parents 574ca9a + c865489 commit 04460af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/formGroup.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ export default {
139139
created() {
140140
this.eventBus.$on("field-validated", () => {
141141
this.$nextTick(() => {
142-
let containFieldWithError = this.$refs.group.querySelector(".form-element.error") !== null;
142+
let containFieldWithError =
143+
this.$refs.group.querySelector(
144+
".form-element." + objGet(this.options, "validationErrorClass", "error")
145+
) !== null;
143146
this.validationClass = {
144147
[objGet(this.options, "validationErrorClass", "error")]: containFieldWithError,
145148
[objGet(this.options, "validationSuccessClass", "valid")]: !containFieldWithError

0 commit comments

Comments
 (0)