Draft: Allow cancelling of list item drag operations with <kbd>Esc</kbd>
Note: see the original upstream MR. In theory, all this needs is test coverage.
What does this MR do and why?
Clean up sortable instances
Before, Sortable.js instances weren't cleaned up, which was a memory leak. It doesn't appear to have had any other consequences, but the next commit will rely on this cleanup behaviour being present.
Allow cancelling of list drag operations with Esc
This adds a Sortable.js plugin called RevertOnEscape which implements
the ability cancel a drag operation by pressing the Escape key.
Part of #362955.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
simplescreenrecorder-2025-01-16_13.05.59
How to set up and validate locally
- Open an issue
- Add an un/ordered list to the description
- Drag a list item
- Press Esc
- Observe drag is cancelled correctly
- Do the same with an epic
Related to #362955