ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

InputNumber组件使用 precision 时,在safari浏览器中且输入法为mac自带输入法的简体中文时(第三方输入法正常),会自动填写小数点后面的值,小数点后值的长度为precision的值

Open cyole opened this issue 1 year ago • 5 comments
trafficstars

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 这类的值

cyole avatar Jul 10 '24 04:07 cyole

遇上同样的问题了

CatMiaogu avatar Jul 15 '24 04:07 CatMiaogu

我也遇到这个问题了

ljw-codeking avatar Jul 20 '24 08:07 ljw-codeking

Chrome 下触发的事件顺序为 onKeyDown -> watchPostEffect -> onKeyUp Safari触发的顺序为: watchPostEffect -> onKeyDown -> onKeyUp

cc-hearts avatar Jul 31 '24 14:07 cc-hearts

🤔 原生的 input keyDown keyUp 事件的触发顺序在两个浏览器平台之间也有差异

复现链接

cc-hearts avatar Jul 31 '24 16:07 cc-hearts

🤔 原生的 input keyDown keyUp 事件的触发顺序在两个浏览器平台之间也有差异

复现链接

在使用自带的简体拼音输入法时存在差异,在使用英文输入法和第三方输入法表现正常 image image image

cyole avatar Aug 01 '24 01:08 cyole

有解决方案吗

hengistchan avatar Aug 30 '24 10:08 hengistchan

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

github-actions[bot] avatar Oct 30 '24 02:10 github-actions[bot]

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.

github-actions[bot] avatar Oct 31 '25 01:10 github-actions[bot]