Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
How to add navigation in treeview with tab key in TreeView Material UI?

I am using arrow key to navigate in TreeView in material ui using ReactJs which are the default keys. But I want to implement the tab keys to navigate in TreeView without hampering the default treeView behaviour.

<TreeView
  className={classes.root1}
  defaultExpandIcon={<ArrowDropDownIcon />}
  defaultCollapseIcon={<ArrowDropUpIcon />}
  disableSelection={true}
></TreeView>;

I just need to add tab key press to navigate between nodes. I have added tabIndex={0}. It works. But I don't need that because its hampering the default tab roving in treeview and I have to traverse the whole tree again from starting parent node.

The default behaiour is that when it leaves focus of treeView by tab press and if we press Shift+Tab key then it will go to last selected item.

I need to go to last selected item but without setting tabindex manually from my side.

Is this possible ? How can we achieve this ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!