react-component / react-component/input-number
光标离开,打印当前值,行为不一致
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 323
- Forks
- 188
- Avg merge
- 20h 3m
- Merged PRs (30d)
- 1
Description
情况一:初始值:10,min:3,改变输入框的值,让其为1,光标离开时,打印该输入框的值,为3,该值与min相等。
情况二:初始值:10,min:3,删掉输入框的值,光标离开时,打印该输入框的值,为空值,该值不与min相等。
问题:针对情况二,光标离开时,该输入框的值应该与情况一一致,应该与min相等才对。
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
Reproduce the two blur cases described in the issue in the input-number component, then trace the blur-time value validation and min handling. Done means clearing the input and leaving it produces the same min value as entering a number below min.
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
- 45/100