Select: fix Switching select`s multiple-choice radio will cause an error (#15206) (#15587)

pull/15776/head
MASONGZHI 2019-05-29 10:17:22 +08:00 committed by luckyCao
parent 934988c03a
commit b245929242
1 changed files with 6 additions and 4 deletions

View File

@ -466,10 +466,12 @@
}); });
this.hoverIndex = -1; this.hoverIndex = -1;
if (this.multiple && this.filterable) { if (this.multiple && this.filterable) {
const length = this.$refs.input.value.length * 15 + 20; this.$nextTick(() => {
this.inputLength = this.collapseTags ? Math.min(50, length) : length; const length = this.$refs.input.value.length * 15 + 20;
this.managePlaceholder(); this.inputLength = this.collapseTags ? Math.min(50, length) : length;
this.resetInputHeight(); this.managePlaceholder();
this.resetInputHeight();
});
} }
if (this.remote && typeof this.remoteMethod === 'function') { if (this.remote && typeof this.remoteMethod === 'function') {
this.hoverIndex = -1; this.hoverIndex = -1;