[AGILE-358] Work packages are shuffled when dragging a work package to it's original position - #24503
Open
dombesz wants to merge 1 commit into
Conversation
dombesz
force-pushed
the
bug/agile-358-work-packages-are-shuffled-when-dragging-a-work-package-to-it-s-original-position
branch
from
July 29, 2026 17:13
7189ba2 to
f5e0a03
Compare
myabc
reviewed
Jul 29, 2026
| row:HTMLElement; | ||
| parent:Node|null; | ||
| nextSibling:Node|null; | ||
| nextElementSibling:Node|null; |
Contributor
Author
There was a problem hiding this comment.
nextSibling also includes text nodes, even comments <-- This is a comment -->, so it's not a reliable way to detect the sibling element.
dombesz
force-pushed
the
bug/agile-358-work-packages-are-shuffled-when-dragging-a-work-package-to-it-s-original-position
branch
3 times, most recently
from
July 29, 2026 22:02
a223780 to
9bccfc0
Compare
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
dombesz
force-pushed
the
bug/agile-358-work-packages-are-shuffled-when-dragging-a-work-package-to-it-s-original-position
branch
2 times, most recently
from
July 30, 2026 12:10
fef70f2 to
a0d3080
Compare
dombesz
force-pushed
the
bug/agile-358-work-packages-are-shuffled-when-dragging-a-work-package-to-it-s-original-position
branch
from
July 30, 2026 12:10
a0d3080 to
d59b844
Compare
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.
Ticket
https://community.openproject.org/wp/AGILE-358
What are you trying to accomplish?
Do not move the dragged work package if the drag operation is a no-op, meaning, the element was dropped back to its original position.
Screenshots
What approach did you choose and why?
resolveDropIntentmethod to ignore any drop actions when the source element lands its original location.nextElementSiblingin thelist-dom.tsin order to avoid matching text nodes.Merge checklist