react-component / react-component/select

onBlur, onFocus callback missing event

Open
#418 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

onBlur current has a single argument with the selected value, onBlur is commonly used to handle dirty tracking which requires a event (ex: formik, etc.).
onFocus has a similar problem.

TreeSelect's onBlur and onFocus fire a React FocusEvent (React.FocusEventHandler) which allows you to grab the inputs reference

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 at TreeSelect's onBlur and onFocus callback definitions and trace where their arguments are assembled. Verify the callbacks receive a React FocusEvent while preserving the selected value, then add or update coverage for both focus transitions and confirm the callback signatures match the documented behavior.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.