react-component / react-component/input

handleReset应该将内容重置为undefined而不是空字符串

Open Beginner friendly
#19 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44
Forks
56
Avg merge
20h 6m
Merged PRs (30d)
1

Description

在最初没有内容输入时,值为undefined,所以重置后也应该是undefined

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 locating the handleReset entry point and inspect how it derives the value when the input initially has no content. Reproduce the reset behavior with an initially undefined value; done means resetting preserves undefined rather than producing an empty string.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.