Skip to content

Commit 0924a29

Browse files
committed
fixed error state updated
1 parent b2d8da6 commit 0924a29

File tree

1 file changed

+2
-1
lines changed
  • lib/matestack/ui/vue_js/components/form

1 file changed

+2
-1
lines changed

lib/matestack/ui/vue_js/components/form/form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ const componentDef = {
4343
resetErrors: function (key) {
4444
if (this.errors[key]) {
4545
delete this.errors[key];
46+
Vue.set(this.errors);
4647
}
4748
if (this.isNestedForm){
4849
var serverErrorKey = this.props["fields_for"].replace("_attributes", "")+"["+this.nestedFormServerErrorIndex+"]."+key
4950
if (this.$parent.errors[serverErrorKey]) {
5051
delete this.$parent.errors[serverErrorKey];
51-
Vue.set(this.$parent.errors)
52+
Vue.set(this.$parent.errors);
5253
}
5354
}
5455
},

0 commit comments

Comments
 (0)