ant-design / ant-design/pro-components

🐛[BUG] ProFormMoney输入-0.1 存在bug

Open
#8,016 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述
输入-0.01会重置成正数

### 📷 复现步骤

按顺序输入-0.01

### 🏞 期望结果

能从负号开始正常输入

### 💻 复现代码

https://codesandbox.io/p/sandbox/antd-reproduction-template-forked-hhr4jm?file=%2Findex.js

### © 版本信息

"antd": "^5.8.0",
"@ant-design/pro-components": "^2.6.43"

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and trace the ProFormMoney component used there, then locate its implementation in the repository. Reproduce entering -0.01 and verify that the value remains negative and can be entered starting with the minus sign.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.