mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
This commit is contained in:
parent
855062423c
commit
66762ffa23
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user