pnp / pnp/sp-dev-fx-controls-react

Treeview control, default selected key focus

Open
#1,751 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted type:enhancement
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Hi,
I am using https://pnp.github.io/sp-dev-fx-controls-react/controls/TreeView/ control.
I passing a key defaultSelectedKeys={this.state.defaultSelected} , this works. but doesnt focus on the item due to long list of tree strutcure.
is there a way to focus on the item ?

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 with the TreeView control documentation and the reported defaultSelectedKeys usage. Trace how a selected key is handled in the TreeView for long nested lists, then verify the expected focus behavior; done means the selected item receives focus or the supported limitation and required API are clearly documented.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.