react-component / react-component/input-number

光标离开,打印当前值,行为不一致

Open
#182 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

情况一:初始值:10,min:3,改变输入框的值,让其为1,光标离开时,打印该输入框的值,为3,该值与min相等。
情况二:初始值:10,min:3,删掉输入框的值,光标离开时,打印该输入框的值,为空值,该值不与min相等。

问题:针对情况二,光标离开时,该输入框的值应该与情况一一致,应该与min相等才对。

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.