Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

129
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda