Open zhidanwang19910111 opened 4 years ago
The clear-icon produces no event, neither select
nor clear
or change
.
can use @input,but can not call back... first blur,then focus again can call back
handleInput() {
console.log(this.selectValue)
if (this.selectValue == '') {
this.resultOptions = []
this.$refs.mInput.$el.querySelector('input').blur()
this.$nextTick(() => {
this.$refs.mInput.focus()
})
}
},
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.11.1
OS/Browsers version
macOS 10.13 / chrome 79
Vue version
2.6.11
Reproduction Link
https://codepen.io/zhidanwang19910111/pen/GRJmBwg
Steps to reproduce
What is Expected?
after clicking clear icon, auto focus input, and inputing something can show suggestion list
What is actually happening?
suggestion hide,can not show again, unless blur ,and focus again