microsoft / microsoft/fluentui
[Bug]: When dragging <TreeItemLayout>, the content on top of it is also included in the dragging shadow
Open
@mshoho is already working on this.
Since Mar 21, 2024.
Component: Tree
Fluent UI react-components (v9)
Resolution: Soft Close
tabster
- 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
"@fluentui/react-components": "^9.30.3"
(Using CodeSandbox)
Are you reporting Accessibility issue?
no
Reproduction
https://codesandbox.io/s/draggable-tree-items-xskd6w?file=/example.tsx
Bug Description
Actual Behavior
If the TreeItemLayout has actions prop set, when it gets dragged, not only is the tree item itself rendered in the dragging shadow, but ALL THE CONTENT on top of the tree item is also rendered. This is wierd.
Expected Behavior
On the other hand, if the TreeItemLayout does not have actions, the dragging shadow behaves correctly.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
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.
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.