# Implementation AGILE-336 - Harden Backlogs DnD against refresh and morph races

Project: Stream agile
Status: new
URL: https://community.openproject.org/work_packages/AGILE-336

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers | OP Dev Polaris Team |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions |  |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

_No work packages_

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| % Complete |  |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

**Context.** Follow-up to <mention class="mention" data-id="AGILE-251" data-type="work_package" data-text="#AGILE-251">#AGILE-251</mention> (<https://github.com/opf/openproject/pull/23218>). Three hardening items from the 2026-07-13 review triage, all real but not launch-blocking.

**Goal.**

  - A list refresh triggered by a HAL update (split-pane edit) can reload the frame mid-drag and detach the grabbed row, silently swallowing the drop. Defer the reload while a drag is active and flush it after drop. Both controllers share the `backlogs_container` frame element, so coordination is an event/attribute on that element — no new outlets.
  - Selection attributes (`data-selected`, `aria-current`) are currently kept alive across morphs by the global DnD morph-attribute hook. Move ownership out: the server hydrates `aria-current` (it knows the URL-synced work package), the work-package controller re-syncs after morphs, and both attributes leave the global hook's preserve list.
  - The drag preview clones the card with `cloneNode(true)`, temporarily duplicating `id` and ARIA reference attributes; strip them from the clone.

**Notes.** Include a real-browser feature spec that morphs the frame during an active drag and completes the drop (test debt noted in review).
