Elementui中的select组件在允许输入的情况下移动端无法调出输入法,这个问题怎么解决?
Array.from(document.getElementsByClassName('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)
}
})
5 回答1.4k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
2 回答889 阅读✓ 已解决
1 回答756 阅读✓ 已解决
1 回答728 阅读✓ 已解决
3 回答918 阅读
2 回答940 阅读
点击的时候获取到input元素,添加focus()事件