react-component / react-component/tree

Is there anyway to expose ref of selected node?

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

I've seen the contextmenu stuff, but am being asked to use context menus built into our framework of choice. The problem is that our framework positions tooltip by providing a ReactNode.

I'm wondering if there is any way to get the ReactNode that backs a TreeNode so that I can handle selection, and then attach popover to that node?

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 tracing the TreeNode selection flow and the existing context-menu handling mentioned in the issue. Determine whether the rendered node or its ref can be exposed for positioning a framework-provided popover, while preserving selection behavior. Done means consumers can access the selected node reference through a documented API.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.