Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard navigation error - MUI RichTreeView #15649

Open
cybadave opened this issue Nov 28, 2024 · 1 comment
Open

Keyboard navigation error - MUI RichTreeView #15649

cybadave opened this issue Nov 28, 2024 · 1 comment
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module!

Comments

@cybadave
Copy link

cybadave commented Nov 28, 2024

Steps to reproduce

Steps:

  1. Open this link to live example: RichTreeViewTest
  2. Expand the first root node "1" by clicking on it
  3. Expand the node "1 2" by clicking on it
  4. Press the down arrow key until focus has moved to the second root node "2"
  5. Press the up arrow key once
  6. Observe that node "1 2 1" is focused

Current behavior

Node "1 2 1" is focused

Expected behavior

Node "1 2 5" should be focused

Context

RichTreeViewNodes should be consistently accessible via keyboard navigation

Your environment

npx @mui/envinfo

System:
OS: Windows 11 10.0.22621
Binaries:
Node: 20.16.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
pnpm: Not Found
Browsers:
Chrome: Not Found
Edge: Chromium (127.0.2651.74)
npmPackages:
@emotion/react: ^11.13.5 => 11.13.5
@emotion/styled: ^11.13.5 => 11.13.5
@mui/core-downloads-tracker: 6.1.8
@mui/material: ^6.1.8 => 6.1.8
@mui/private-theming: 6.1.8
@mui/styled-engine: 6.1.8
@mui/system: 6.1.8
@mui/types: 7.2.19
@mui/utils: 6.1.8
@mui/x-internals: 7.21.0
@mui/x-tree-view: ^7.22.1 => 7.22.1
@types/react: ^18.3.12 => 18.3.12
react: ^18.3.1 => 18.3.1
react-dom: ^18.3.1 => 18.3.1
typescript: ^4.9.5 => 4.9.5

Browsers:

Firefox 131.0 (64Bit)
Microsoft Edge for Business 131.0.2903.63 (Official build) (64-bit)
Google Chrome 131.0.6778.86 (Official Build) (64-bit)

Search keywords: MUI RichTreeView keyboard navigation

@cybadave cybadave added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 28, 2024
@github-actions github-actions bot added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Nov 28, 2024
@noraleonte
Copy link
Contributor

Hey @cybadave 👋
I can confirm that Arrow Up does not work right when the last child of the previous element is expanded. I will add this to the board and we will discuss how to fix it. Thanks for reporting

@noraleonte noraleonte removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants