提交 f35cfe05 编写于 作者: D dolymood

fix(form): should sync validity when add item field

上级 40ad25f4
......@@ -124,6 +124,7 @@
dispatchEvent(this.$refs.form, 'reset')
},
submitHandler(e) {
debugger
// sync all fields value because of trigger: blur or debounce
this.syncValidatorValues()
if (this.skipValidate) {
......@@ -288,6 +289,7 @@
},
addField(fieldComponent) {
this.fields.push(fieldComponent)
this.setValidity(fieldComponent.fieldValue.modelKey)
},
destroyField(fieldComponent) {
const i = this.fields.indexOf(fieldComponent)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册