We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9282270 commit ef74ee0Copy full SHA for ef74ee0
packages/form/src/form-item.vue
@@ -224,10 +224,6 @@
224
} else {
225
prop.o[prop.k] = this.initialValue;
226
}
227
- /* Select 的值被代码改变时不会触发校验,
228
- 这里需要强行触发一次,刷新 validateDisabled 的值,
229
- 确保 Select 下一次值改变时能正确触发校验 */
230
- this.broadcast('ElSelect', 'fieldReset');
231
232
this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
233
},
packages/select/src/select.vue
@@ -851,9 +851,6 @@
851
852
this.$on('handleOptionClick', this.handleOptionSelect);
853
this.$on('setSelected', this.setSelected);
854
- this.$on('fieldReset', () => {
855
- this.dispatch('ElFormItem', 'el.form.change');
856
- });
857
858
859
mounted() {
0 commit comments