El-autocomplete loses focus after being prompted, and the last recommendation data will appear if you get the focus again.

when prompted by 1.el-autocomplete--
2. Let input lose focus = and set v-model: value to"", (experiments show that the input event will not be triggered)
3.input gets focus again, entering nothing (that is, v-model: or empty character)
4. The last prompt option will appear inexplicably

confused, el-autocomplete didn"t find a solution

the environmental background of the problems and what methods you have tried

feel that you want to enter the component
1.input input focus 2.input value is set to empty 3 input to get the focus again will appear the last prompt option

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

what I want is that when input gets focus again and value is empty = prompt that it should be initialized: there is no recommended data

problem description

but the reality is:: get the focus again: input is obviously empty. But there are recommendation data

May.22,2021

think about it for a long time = = want to modify the source code
idea = = after getting the focus-- see if the current input value is empty, if so, clear the recommendation data

= = found that the element code is compiled: looks confused again

then look at the code-find that add

that's good. I don't know if I'm using the wrong posture or bug?.

Menu