ant-design-vue
ant-design-vue copied to clipboard
InputNumber组件使用 precision 时,在safari浏览器中且输入法为mac自带输入法的简体中文时(第三方输入法正常),会自动填写小数点后面的值,小数点后值的长度为precision的值
https://github.com/vueComponent/ant-design-vue/assets/44540278/33c018a7-9240-4e79-9abb-c332d5b982e2
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.3
Environment
Safari MacOS 系统默认简体中文输入法
Reproduction link
https://github.com/cyole/ant-design-vue-input-number
Steps to reproduce
使用input-number组件 并且使用precision属性 在safari浏览器中操作
What is expected?
输入法为mac自带输入法的简体中文时(第三方输入法正常),会自动填写小数点后面的值,小数点后值的长度为precision的值
What is actually happening?
期望和其他英文输入法一样 不自动填写小数点后面的值,当前情况无法输入100 这类的值
遇上同样的问题了
我也遇到这个问题了
Chrome 下触发的事件顺序为 onKeyDown -> watchPostEffect -> onKeyUp Safari触发的顺序为: watchPostEffect -> onKeyDown -> onKeyUp
有解决方案吗
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.