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 8550624 commit 66762ffCopy full SHA for 66762ff
packages/select/src/select.vue
@@ -750,7 +750,7 @@
750
751
deleteSelected(event) {
752
event.stopPropagation();
753
- const value = this.multiple ? [] : null;
+ const value = this.multiple ? [] : '';
754
this.$emit('input', value);
755
this.emitChange(value);
756
this.visible = false;
test/unit/specs/select.spec.js
@@ -288,7 +288,7 @@ describe('Select', () => {
288
const iconClear = vm.$el.querySelector('.el-input__icon.el-icon-circle-close');
289
expect(iconClear).to.exist;
290
iconClear.click();
291
- expect(vm.value).to.equal(null);
+ expect(vm.value).to.equal('');
292
done();
293
}, 100);
294
});
0 commit comments