-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(components): [input] the cursor is misplaced when type setting number #15341
fix(components): [input] the cursor is misplaced when type setting number #15341
Conversation
👋 @yuchiXiong, seems like this is your first time contribution to element-plus.
|
Hello @yuchiXiong, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=15341 |
b5325dd
to
98fce76
Compare
@yuchiXiong Hello, I cannot reproduce this problem, can you provide a reproduction link? |
step:
|
这个版本什么时候能修复呢 有点急 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先这样吧
@yuchiXiong Thanks! |
@dadaguai-git A version will be released in the near future, but if you are in a hurry, it is recommended to add styles to fix it yourself. |
好的谢谢 |
PR 8193 修复了 el-input-number 组件在输入中文时会出现光标向上偏移的问题。
同时 issue 6660 提到了造成这个问题的原因:
……but,当 el-input 组件指定 type=number 时,el-input 渲染的同样是一个 type=number 的 input 元素,因而同样会导致该问题,不知道是不是改漏了_(:з)∠)_