microsoft / microsoft/fluentui
[Bug]: Keyboard navigation in Tree component with Drag and Drop is broken, after selecting a tree node with the enter key.
Open
@petdud is already working on this.
Since Apr 15, 2024.
Component: Tree
Fluent UI react-components (v9)
Resolution: Soft Close
- Dominant language
- TypeScript
- Stars
- 20.3k
- Forks
- 2.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 46
Description
Library
React Components / v9 (@fluentui/react-components)
System Info
System:
OS: macOS 13.5.2
CPU: (10) arm64 Apple M1 Max
Memory: 10.05 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 123.0.6312.107
Safari: 16.6
Are you reporting Accessibility issue?
None
Reproduction
https://react.fluentui.dev/?path=/docs/components-tree--default#drag-and-drop
Bug Description
Actual Behavior
In the Tree component, drag & drop example: select an element via keyboard navigation and press enter to select any tree node.
- if you scroll, the selected element will follow you around as you scroll.
- if you navigate via up/down keyboard arrow keys, the element moves outside of the tree.
Expected Behavior
keyboard selection should not affect drag and drop, or if it is supposed to be possible, it must behave correctly.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.