react-component / react-component/input-number

【建议】不知道是否方便给onChange提供更多参数

Open
#371 0 comments 1 reaction 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

在实际使用的过程中,发现用户很在意自己的输入数字是不是被矫正了,开发这需要获取这个信息,提供最终值和用户输入值就有一个比较的入口。

// 类似这种
onChange(value, input) {
}

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

Start by tracing the onChange entry point and its existing callback tests, if present, to understand how the final formatted value is produced. Compare the corrected value with the user's raw input and define the additional callback argument without changing existing behavior; done means the callback exposes both values and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.