OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
enable reverting of elements if they are dropped outside of a valid target
Jonas Jabari8c65e247d9dc
diff --git a/frontend/src/stimulus/controllers/dynamic/generic-drag-and-drop.controller.ts b/frontend/src/stimulus/controllers/dynamic/generic-drag-and-drop.controller.tsindex 2a0eb2ecaf6..81872c2e8ae 100644--- a/frontend/src/stimulus/controllers/dynamic/generic-drag-and-drop.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/generic-drag-and-drop.controller.ts@@ -56,6 +56,7 @@ export default class extends Controller {{moves: (_el, _source, handle, _sibling) => !!handle?.classList.contains('octicon-grabber'),accepts: (el?: Element | null, target?: Element | null, source?: Element | null, sibling?: Element | null) => this.accepts(el!, target!, source!, sibling!),+ revertOnSpill: true // enable reverting of elements if they are dropped outside of a valid target},)// eslint-disable-next-line @typescript-eslint/no-misused-promises