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

[Bug]: [Tree] Virtualized Tree component looses focusable element when the element is removed from DOM due to virtualization #31323

Open
2 tasks done
petrjaros opened this issue May 9, 2024 · 0 comments

Comments

@petrjaros
Copy link
Contributor

petrjaros commented May 9, 2024

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Windows 10 10.0.22635
    CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
    Memory: 23.99 GB / 47.73 GB
  Browsers:
    Edge: Chromium (123.0.2420.41), ChromiumDev (125.0.2492.1)
    Internet Explorer: 11.0.22621.3566

Are you reporting Accessibility issue?

yes

Reproduction

https://master--628d031b55e942004ac95df1.chromatic.com/?path=/docs/components-tree--default#virtualization

Bug Description

  • Open the link, it should show official Fluent storybook on virtualized Tree example
  • Use tab to navigate to the first item in the tree
  • Press right arrow key to open first item branch of items
  • Then scroll to the end of the tree using mouse

Actual Behavior

  • Now it is not possible to navigate in the tree using keyboard anymore

Expected Behavior

  • It should be still possible to navigate in the tree using keyboard

Logs

No response

Requested priority

Blocking

Products/sites affected

Teams

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@petrjaros petrjaros changed the title [Bug]: [Tree] Virtualized Tree component loose focusable element when the item is removed from DOM due to virtualization [Bug]: [Tree] Virtualized Tree component looses focusable element when the item is removed from DOM due to virtualization May 9, 2024
@petrjaros petrjaros changed the title [Bug]: [Tree] Virtualized Tree component looses focusable element when the item is removed from DOM due to virtualization [Bug]: [Tree] Virtualized Tree component looses focusable element when the element is removed from DOM due to virtualization May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants