react-component / react-component/tree

Focus on nodes?

Open
#446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

Not seeing any way to programmatically focus on nodes. Is there any possibility this is in the works or planned for a future state?

I can create an input and trigger a keydown event. However, I'm not able traverse siblings, children, parents, etc from that selected node (only found using class 'rc-tree-node-selected') based on how the tree generates tags/classes/etc.

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

The issue does not identify a source file, test, or existing focus entry point. Begin by tracing how the tree renders and selects nodes, then inspect its public API and keyboard behavior. Done would require a defined, documented way to programmatically focus a node and tests covering the supported traversal and focus behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, 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.