LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 9, 2026, 12:04 AM
updatedAtNov 9, 2026, 9:48 AM
githubUrlhttps://github.com/neomjs/neo/issues/20626
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 9, 2026, 9:48 AM
milestonev13.4

A grouped header's drag proxy loses its header styling and drifts out of its group

Closed v13.4.0/archive-v13-4-0-chunk-5 bugaigriddrag-and-drop
neo-opus-vega
neo-opus-vega commented on Nov 9, 2026, 12:04 AM

Context

The operator's manual test of examples/grid/headerGroups (recording of 2026-11-08 23:57, 19 s) blocks the 13.4 release. Frames from it show three defects in the leaf-header drag:

  • The proxy's header loses its styling, sometimes. Dragging Oct (Q4) shows a proxy whose header cell is white, with no header background and no "Oct" text. The body cells come with it. A later drag of Sep shows a proxy with the blue header and its text. So it is intermittent.
  • The proxy drifts out of its group. Dragging Sep (Q3), the proxy travels over Q4's columns. The drop still lands inside Q3 (Jul | Sep | Aug afterwards), so what the user sees contradicts what the zone will do.
  • A group cell selects its text. Pressing and dragging on the "Q3" group cell highlights "Q3" as a text selection.

The Problem

Group membership is a hard rule of the reorder: a leaf never leaves its group. The proxy doesn't show that rule. It floats wherever the pointer goes, then snaps back, which reads as a broken drop. The half-styled proxy and the text selection make the demo look unfinished.

The Architectural Reality

  • Design authority: #20379, The Fix step 4: "Header drag can't move a leaf out of its group, and it can't move an ungrouped column into a group." The restriction is intended. Making the proxy honor it, and keeping the proxy's look, calls no decided behavior wrong.
  • src/draggable/grid/header/toolbar/SortZone.mjs#createDragProxy builds the proxy's header part as {...config.vdom, cls: ['neo-grid-header-toolbar', 'neo-toolbar']} from the base zone's clone of the dragged button. Whether the clone keeps the button's own node, classes and text decides the header's look.
  • Neo.draggable.container.SortZone already bounds a drag with useItemSortBoundary / getSortBoundaryRect. A grouped leaf's natural boundary is its group's first-to-last leaf extent.

The Fix

  • The proxy's header keeps the dragged button's classes and text on every drag. The run-time cause of the intermittent loss is found first, not guessed.
  • While a grouped leaf drags, the proxy is clamped to its group's extent, so the refusal is visible as an edge. An ungrouped column's proxy keeps today's range.
  • Past its group's edge, a grouped leaf waits in the edge slot under its clamped proxy, and a release keeps that slot. The operator's manual test on 2026-11-09 rejected the earlier park, whose slide back to the resting order read as a second, unexplained slide.
  • Group cells set user-select: none.

Decision Record impact: none.

Acceptance Criteria

  • Dragging any leaf, including after a horizontal scroll, shows the proxy's header button inside the proxy with its text (e2e on examples/grid/headerGroups: the button's left edge meets the proxy toolbar's, over repeated drags. A colour check alone passes a header shifted out of view, per the reproduction on this ticket).
  • A grouped leaf's proxy never leaves its group's horizontal extent during the drag (e2e: drag Sep toward Q4; the proxy's right edge stays at or before Q3's right edge).
  • Pressing and dragging on a group cell selects no text. Ships with #20630 (#20627), which restyles the group cells as drag handles and carries user-select: none.
  • The operator's manual pass on examples/grid/headerGroups accepts the drag (Post-Merge Validation is not enough for a release blocker: reviewed in the PR).

Out of Scope

  • Dragging a whole group: its own ticket.
  • Moving a leaf into another group, which stays refused (#20379). If the operator wants it, that rewrites a leaf's group and changes the data, so it is a separate decision.

Related

#20379 · #20397 · the operator's release block (2026-11-08 23:57)

Live latest-open + closed sweep: I read the latest 20 open issues and ran a closed search ("header group drag proxy") at 2026-11-08 23:0xZ; no equivalent turned up. Backlog band: 13 open, green.

Origin Session ID: dc9981ce-06c3-426d-ac3e-63aeb7f388fa

tobiu referenced in commit 759bca4 - "fix(grid): a grouped header's drag proxy keeps its header and stays over its group (#20626) (#20632) on Nov 9, 2026, 9:48 AM
tobiu closed this issue on Nov 9, 2026, 9:48 AM
tobiu referenced in commit e77582c - "feat(grid): a group header drag slides its neighbours and carries its columns (#20641) (#20644) on Nov 9, 2026, 10:12 AM
tobiu referenced in commit 5788bef - "feat(examples): add Header Groups theme controls (#20635) (#20638) on Nov 9, 2026, 10:38 AM