Skip to content

Commit

Permalink
Select: fix Switching select`s multiple-choice radio will cause an er…
Browse files Browse the repository at this point in the history
  • Loading branch information
masongzhi authored and luckyCao committed May 29, 2019
1 parent 934988c commit b245929
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,12 @@
});
this.hoverIndex = -1;
if (this.multiple && this.filterable) {
const length = this.$refs.input.value.length * 15 + 20;
this.inputLength = this.collapseTags ? Math.min(50, length) : length;
this.managePlaceholder();
this.resetInputHeight();
this.$nextTick(() => {
const length = this.$refs.input.value.length * 15 + 20;
this.inputLength = this.collapseTags ? Math.min(50, length) : length;
this.managePlaceholder();
this.resetInputHeight();
});
}
if (this.remote && typeof this.remoteMethod === 'function') {
this.hoverIndex = -1;
Expand Down

0 comments on commit b245929

Please sign in to comment.