react-component / react-component/input-number

建议 - readOnly模式下是否可以开放upHandler与downHandler?

Open
#199 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的形态,用于只根据step调整数值,但是不允许用户输入的场景,目前设置readOnly或者disable之后上下handler都会被禁用

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

No file or test is named in the issue. Locate the readOnly, disabled, upHandler, and downHandler entry points in the input-number implementation, then verify that readOnly prevents direct text input while still allowing step-based value changes and that disabled behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
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.