react-component / react-component/input-number

当我设置了precision,可否等我光标离开的时候,再进行四舍五入转换?

Open
#163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
323
Forks
188
Avg merge
20h 3m
Merged PRs (30d)
1

Description

当我设置了precision,比如0,我输入3.6的时候,输入框中的数字立马变成了4,导致我后面输入789的时候,就变成了4789,感觉体验不好。可否等我光标离开的时候,再根据precision进行四舍五入转换?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by tracing the input's precision and rounding handling; done means typing 3.6 with precision 0 keeps the editable value until the cursor leaves, then applies rounding.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
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.