microsoft / microsoft/fluentui

[Bug]: When dragging <TreeItemLayout>, the content on top of it is also included in the dragging shadow

Open
#29,079 9 comments 0 reactions 2 assignees View on GitHub

@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.

image

Expected Behavior

On the other hand, if the TreeItemLayout does not have actions, the dragging shadow behaves correctly.

image

Recording_20230906T173554

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.