2.12.0
mac
2.6.10
https://jsfiddle.net/mmx38qxw/
1.输入三出现下拉的建议
2.点击小叉叉 clearable
3.再次输入三不出现下拉的建议选择
再次输入三 可以出现下拉选择的
数据时cb获取到了 要先失去光标 然后再获取广告才能显示出下拉的选择建议项
Translation of this issue:
2.12.0
Mac
2.6.10
Https://jsfiddle.net/mmx38qxw/
Suggestions for a drop-down in Input 3
Click on the small fork clearable
The drop-down selection can occur by re-entering three
When the data is available, the CB gets the suggestion that the cursor must be lost before the advertisement can be retrieved to show the drop-down selection.
有方法解决吗
I have this issue too.
I encountered the issue and wrote the following code as temporary solution. Hope it helps someone.
<el-autocomplete ref="autocomplete" @clear="onClearAutocomplete">
onClearAutocomplete() {
this.$refs.autocomplete.$children
.find(c => c.$el.className.includes('el-input'))
.blur();
this.$refs.autocomplete.focus();
},
Most helpful comment
I encountered the issue and wrote the following code as temporary solution. Hope it helps someone.