[bug report] when editing text on El input, the cursor will be automatically located at the end of the input box
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.13.0
### OS/Browsers version
macOs catalina / Google Chrome 79.0.3945.88 (正式版本) (64 位)
### Vue version
2.5.20
### Reproduction Link
https://codepen.io/willian12345/pen/GRgMmRe
### Steps to reproduce
- [ 1 ] 引入 portal-vue 组件
- [ 2 ] 将el-input放在 portal-vue 内
- [ 3 ] 在el-input内编辑文本定位到文本最前部输入,光标会自动跳到输入框末尾
### What is Expected?
在第三方组件 "portal-vue" 内使用el-input组件,编辑文字时光标定位在哪里就在哪里开始输入
### What is actually happening?
在第三方组件 "portal-vue" 内使用 el-input 时, 光标会自动被定位到输入框末尾。
经测试使用原生的input 或 iview 框架的Input组件并未发现此异常情况
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.