react-component / react-component/input-number
onChange事件中,判断值错误的情况,给出相应提示
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 323
- Forks
- 188
- Avg merge
- 20h 3m
- Merged PRs (30d)
- 1
Description
在onChange事件中,如果一个值不是我想要的,做一下判断或者提示console一下这个值,那么就会一直consone,一直走onChange事件,是不是组件的bug呢,有没有解决办法。
In onChange events, if a value is not what I want, make a judgment or prompt console to do this value, then it will always consone, go onChange events, is it a component bug? Is there a solution?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the repeated onChange behavior described in the issue and inspect the input-number component's change-handling entry point. Determine whether invalid values trigger repeated callbacks, then verify the expected behavior with a focused test or reproduction before deciding whether a fix is needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100