Element select remote search cannot be entered properly when setting focus

The default focus search box is required when the

page is initialized. I set the delay in mounted:

HTML section:

<el-select ref="selector" filterable remote ....

JS section:

mounted() {
  setTimeout(() => {
    this.$refs.selector.focus()
  }, 500)
}

performance:

does set focus normally, but the problem is that only sets focus and cannot enter !
must click Enter again to show the normal Input style and can be typed properly.


it's ridiculous. It would be fine to change it to click!

mounted() {
  setTimeout(() => {
    this.$refs.selector.$el.querySelector('input').click()
  }, 500)
}
Menu