Commit b2459292 authored by MASONGZHI's avatar MASONGZHI Committed by luckyCao

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

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