Fix list item drag-reordering in work items, issues
What does this MR do and why?
Fixes Dragging/reordering of list items in work items... (#595151 - closed) by setting forceFallback: true in Sortable options.
Broke when Fix offset drag and drop in panelled design (!212580 - merged) set forceFallback: false for all Sortable instances.
See extended conversation here: #595151 (comment 3201888197)
Even more references
- Reorganize issue description list items with dr... (#15260 - closed)
- Drag and drop list items on issue page (!85936 - merged)
- Reorganize issue description list items with dr... (gitlab-com/www-gitlab-com!104141 - merged)
- https://docs.gitlab.com/user/project/issues/managing_issues/#description-lists-and-task-lists
When you use ordered lists, unordered lists, or task lists in issue descriptions, you can:
- Reorder all list items with drag and drop.
- https://about.gitlab.com/releases/2022/05/22/gitlab-15-0-released/#reorganize-issue-description-list-items-with-drag-and-drop
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Make a list of items in a work item or MR description.
- View the item, then try to drag a list item around using one of the drag handles that appears on hover. Don't work.
- Check out this branch.
- Refresh the page. Try again. Do work.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Asherah Connor