Commit 66762ffa authored by iamkun's avatar iamkun Committed by luckyCao

Revert "Select: set value to null when cleared (#14322) (#14650)" (#15447)

parent 85506242
......@@ -750,7 +750,7 @@
deleteSelected(event) {
event.stopPropagation();
const value = this.multiple ? [] : null;
const value = this.multiple ? [] : '';
this.$emit('input', value);
this.emitChange(value);
this.visible = false;
......
......@@ -288,7 +288,7 @@ describe('Select', () => {
const iconClear = vm.$el.querySelector('.el-input__icon.el-icon-circle-close');
expect(iconClear).to.exist;
iconClear.click();
expect(vm.value).to.equal(null);
expect(vm.value).to.equal('');
done();
}, 100);
});
......
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