react-component / react-component/input-number

inputNumber的readOnly和disable状态是否分开处理,或者新增一个调整状态?

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

有一种场景是用户不可以输入和修改数字,只能够使用上下箭头调整,我理解应该是类似readOnly,但好像又不能算作readOnly,这个场景是否新增一种状态?

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 reviewing the component's existing readOnly and disabled behavior and how keyboard arrow adjustments are handled. Clarify whether the request needs a separate state or a different interpretation of an existing one. Done should mean that users cannot type or edit the number directly but can adjust it with the up and down arrows, with the behavior and API clearly defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.