The select component in Elementui cannot call out the input method on the mobile side when input is allowed.

the select component in Elementui cannot call out the input method when input is allowed. How to solve this problem?

Dec.02,2021

I also encounter this problem, have you solved it?


get the input element when you click, and add the focus () event


Array.from ('el-select')). ForEach ((item) = > {

  item.children[0].children[0].removeAttribute('readOnly')
  item.children[0].children[0].onblur = function () {
    let _this = this
    setTimeout(() => {
      _this.removeAttribute('readOnly')
    }, 200)
  }
})
)
Menu