Skip to content

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

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

Closed
1 task done
cyole opened this issue Jul 10, 2024 · 7 comments · Fixed by #7918
Labels

Comments

@cyole
Copy link

cyole commented Jul 10, 2024

2024-07-10.11-54-31.mp4
  • 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 这类的值

@CatMiaogu
Copy link

遇上同样的问题了

@ljw-codeking
Copy link

我也遇到这个问题了

@cc-hearts
Copy link
Contributor

cc-hearts commented Jul 31, 2024

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

@cc-hearts
Copy link
Contributor

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

复现链接

@cyole
Copy link
Author

cyole commented Aug 1, 2024

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

复现链接

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

@hengistchan
Copy link

有解决方案吗

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants