Repository navigation
[Drag] Allow to drag and drop between different FluentDragContainers - #5442
Merged
Denis Voituron (dvoituron) merged 10 commits intoOct 19, 2026
Merged
Denis Voituron (dvoituron) merged 10 commits into
Denis Voituron (dvoituron) merged 10 commits into
Conversation
Marvin Klein (MarvinKlein1508)
requested review from
Denis Voituron (dvoituron) and
Vincent Baaij (vnbaaij)
as code owners
October 13, 2026 14:42
Marvin Klein (MarvinKlein1508)
marked this pull request as draft
October 13, 2026 14:42
Collaborator
Author
|
Will do more testing on this before I remove the Draft status |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Drag state can become stale, and touch drag-end events may be delivered to the destination instead of the original source.
2 open findings
What changed in this PR
Adds drag-and-drop support between non-nested FluentDragContainer instances using shared group state.
Changes:
- Introduces
FluentDragGroup<TItem>and cross-container touch targeting. - Adds lifecycle handling and tests for grouped containers.
- Adds a two-list documentation example.
| File | Description |
|---|---|
tests/Core/Components/Drag/FluentDragTests.razor |
Adds grouped drag and lifecycle tests. |
src/Core/Components/Drag/FluentDragGroup.cs |
Implements shared drag state. |
src/Core/Components/Drag/FluentDragContainer.razor.ts |
Enables grouped touch targets. |
src/Core/Components/Drag/FluentDragContainer.razor.cs |
Integrates grouping and cross-container lookup. |
src/Core/Components/Drag/FluentDragContainer.razor |
Emits the group identifier. |
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Drag/FluentDragDrop.md |
Links the new example. |
examples/Demo/FluentUI.Demo.Client/Documentation/Components/Drag/Examples/DragDropBetweenContainers.razor |
Demonstrates moving list items. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Marvin Klein (MarvinKlein1508)
marked this pull request as ready for review
October 14, 2026 07:30
Denis Voituron (dvoituron)
approved these changes
Oct 19, 2026
This was referenced Nov 16, 2026
Merged
This was referenced Nov 21, 2026
Closed
Closed
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request
📖 Description
This PR implements a new feature into
FluentDragContainerwhich allows the user the drag and drop items from non nestedFluentDragContainerinstances.Previously this was only possible if all containers are nested within each other.
2026-10-13.16-16-12.mp4
This makes it possible to create UIs like this
2026-10-13.16-35-44.mp4
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
Component-specific