ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.13k stars 14.64k forks source link

[Bug Report] el-autocomplete trigger-on-focus twice #16825

Closed obligat closed 5 years ago

obligat commented 5 years ago

Element UI version

2.11.1

OS/Browsers version

Chrome

Vue version

2.6.10

Reproduction Link

https://codepen.io/obligat/pen/MNmZEj?&editable=true

Steps to reproduce

focus 输入框,然后 blur, 然后在 focus, 会先弹一下上一次的搜索list,再 loading,再展示接口返回的。

What is Expected?

focus 时不弹上一次的 搜索list。 可以参考 http://www.imooc.com/wenda/detail/425383 这篇文章。

What is actually happening?

弹了上次的 搜索list。

element-bot commented 5 years ago

Translation of this issue:

Element UI version

2.11.1

OS/Browsers version

Chrome

Vue version

2.6.10

Reproduction Link

Https://codepen.io/obligat/pen/MNmZEj?&editable=true

Steps to reproduce

Fous input box, then blur, and then focus, will first pop up the last search list, then load, and then show the interface returned.

What is Expected?

Focus does not hit the last search list.

Refer to http://www.imooc.com/wenda/detail/425383.

What is actually happening?

Play the last search list.

nullptru commented 5 years ago

Pr welcome