fix: correct drag and drop target detection for result association columns

- Fix getDropTarget function to properly detect drops on column bodies
- Allow dropping on any element within the column body area
- Ensure drag and drop associations work correctly
parent a1dda541
...@@ -900,9 +900,10 @@ document.addEventListener('DOMContentLoaded', function() { ...@@ -900,9 +900,10 @@ document.addEventListener('DOMContentLoaded', function() {
} }
function getDropTarget(element) { function getDropTarget(element) {
// Check for outcome column body // Check for outcome column body (or any element inside it)
if (element.hasAttribute('data-drop-target')) { const columnBody = element.closest('[data-drop-target]');
return element.closest('.outcome-column'); if (columnBody) {
return columnBody.closest('.outcome-column');
} }
// Check for UNDER/OVER zones // Check for UNDER/OVER zones
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment