Drag-and-Drop Malfunction in submission form #3624
Labels
affects: main
Issue impacts "main" (latest release).
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
claimed: 4Science
4Science team is working on this issue & will contribute back
component: submission
Describe the bug
When starting a new submission of an Item that has a field with the chips buttons (e.g 'dc.subject' for Publication) if the metadata has multiple values distributed into rows, the drag&drop functionality will not work between rows.
Screencast.from.08-11-24.17.25.32.webm
In DSpace, when using Angular Material’s drag-and-drop (cdkDropList) with cdkDrag in a multi-row layout, drag-and-drop functionality fails if items span more than one row. Specifically, when attempting to drag an item between rows, the intended swap does not occur, and items in other rows may shift unexpectedly. This issue limits the functionality to single-row layouts.
This issue arises because the current version (17.3.10) of Angular Material’s cdkDropList does not natively support multi-row. Support of multiple row has been added to Angular 18.
So for DSpace 9 the fix can be done when upgrading to Angular 18. While in DSpace 8, which uses an earlier Angular version, we need a custom fix.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Drag-and-drop functionality should work seamlessly across multiple rows, allowing users to swap items without causing other rows to shift.
The text was updated successfully, but these errors were encountered: