Commit ef74ee05 authored by 杨奕's avatar 杨奕 Committed by GitHub

Select: revert #10105 (#11837)

parent 92822706
......@@ -224,10 +224,6 @@
} else {
prop.o[prop.k] = this.initialValue;
}
/* Select 的值被代码改变时不会触发校验,
这里需要强行触发一次,刷新 validateDisabled 的值,
确保 Select 下一次值改变时能正确触发校验 */
this.broadcast('ElSelect', 'fieldReset');
this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
},
......
......@@ -851,9 +851,6 @@
this.$on('handleOptionClick', this.handleOptionSelect);
this.$on('setSelected', this.setSelected);
this.$on('fieldReset', () => {
this.dispatch('ElFormItem', 'el.form.change');
});
},
mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment