2.3.8
Chrome 65.0.3325.181
2.5.16
https://jsfiddle.net/SongZeng/mmx38qxw/1937/
对 input 使用 setSelectionRange 方法无效,提示 this.$refs.input.setSelectionRange is not a function
希望 input 支持 setSelectionRange 方法
this.$refs.input.setSelectionRange is not a function
Translation of this issue:
Element UI version
2.3.8
OS/Browsers version
Chrome 65.0.3325.181
Vue version
2.5.16
Reproduction Link
https://jsfiddle.net/SongZeng/mmx38qxw/1937/
Steps to reproduce
Invalid for input using setSelectionRange method, suggesting this.$refs.input.setSelectionRange is not a function
What is Expected?
Hope input supports the setSelectionRange method
What is actually happening?
This.$refs.input.setSelectionRange is not a function
需要在原生 input 元素上执行:https://jsfiddle.net/mmx38qxw/1938/
OK,希望能在文档里添加上说明
需要在原生 input 元素上执行:https://jsfiddle.net/mmx38qxw/1938/
I don't understand the language but the answer was in the fiddle, thank you !
Most helpful comment
需要在原生 input 元素上执行:https://jsfiddle.net/mmx38qxw/1938/