LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 8, 2026, 9:02 AM
updatedAtNov 8, 2026, 9:50 AM
githubUrlhttps://github.com/neomjs/neo/issues/20588
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 8, 2026, 9:50 AM

A splitter's drag opens a sort session in its parent dashboard

Closed v13.4.0/archive-v13-4-0-chunk-4 bugaidashboarddrag-and-drop
neo-opus-vega
neo-opus-vega commented on Nov 8, 2026, 9:02 AM

Context

This surfaced while measuring #20585 (the Pointer Events sensor) on the component tier. The DockSplitterIframePane page left its dashboard.Container stamped neo-is-dragging after a splitter drag. @neo-gemini-maryam traced the mechanism in the Depth Floor of review 5817047622 on #20585.

Reproduced on dev @ 22f79ac1e9 with a new component arm (test/playwright/component/dashboard/DockSplitterSortZone.spec.mjs), 3/3 red:

Error: the dashboard opens no sort session during a splitter drag
Expected: false
Received: true

A probe on the same arm read the stamp every 250 ms after release. It was still present 15 s later in 3/3 runs.

The Problem

Every Neo.component.Splitter carries neo-draggable in its baseCls (src/component/Splitter.mjs:40; DockSplitter at src/dashboard/dock/interaction/DockSplitter.mjs:72). A dashboard.Container is dragResortable: true by default, and its SortZone listens for drag:start / drag:move / drag:end on the delegate .neo-draggable (src/draggable/container/DragZone.mjs:30-37).

The splitter registers its own drag:start / drag:end listeners without bubble: false (src/component/Splitter.mjs:94-97). So DomEvent#fire (src/manager/DomEvent.mjs:180-255) carries the splitter's drag:start up the component path to the dashboard. SortZone#onDragStart (src/draggable/container/SortZone.mjs:881) finds the splitter among getSortableItems(), because the generic isDraggableItem admits every component item, and opens a sort session for it: proxy, placeholder, and the neo-is-dragging stamp (src/draggable/DragZone.mjs:553). The main thread routes the gesture to the splitter's own DragZone, so the dashboard's session never reaches a terminal that clears the stamp.

The visible result: body:has(.neo-is-dragging) * { pointer-events: none !important } (resources/scss/src/draggable/DragProxyComponent.scss) stays active, and the page stops taking pointer input after one splitter drag.

Reach. No app or example in this repository puts a splitter directly inside a dashboard.Container. The dock's LayoutAdapter places its splitters in plain containers (src/dashboard/dock/projection/LayoutAdapter.mjs:663-668, 957-977, 1157). Any consumer who puts a splitter in a sortable dashboard hits the defect, and the DockSplitterIframePane component page is built that way.

The Architectural Reality

  • Design authority: the DockSplitterIframePane.spec.mjs header records the contract: "a splitter resize opens no session at all".
  • DomEvent#fire ends the path walk once a listener declares bubble: false (src/manager/DomEvent.mjs:228-229, 252). That is the engine's existing way for a component to own an event; MonthYearSelector, DateSelector, Circle, Gallery and Helix use it.
  • The SortZone already handles the no-session case. onDragMove returns without itemRects (src/draggable/container/SortZone.mjs:737; dashboard override src/draggable/dashboard/SortZone.mjs:434), and processDragEnd returns without dragComponent (:586). So drag:move, which keeps bubbling, stays a no-op on the parent.
  • No listener in src/, apps/ or examples/ relies on a splitter's drag:start / drag:end reaching an ancestor. Grep receipt: the eight drag:start / drag:end registrants in src/ are all their own drag sources, and none exist in apps/ or examples/.

The Fix

In src/component/Splitter.mjs construct(), register the splitter's drag:start and drag:end listeners with bubble: false. The splitter is the innermost drag source and owns its gesture, so no ancestor delegate (a SortZone, a Resizable, a dialog header) reacts to it. DockSplitter inherits the change.

Acceptance Criteria

  • AC-1: test/playwright/component/dashboard/DockSplitterSortZone.spec.mjs: during a held splitter drag inside a dashboard.Container, the dashboard carries no neo-is-dragging, and after release neither neo-drag-active nor the stamp remains. Red on dev 22f79ac1e9 (3/3), green with the fix.
  • AC-2: The existing splitter suites stay green: test/playwright/component/dashboard/DockSplitter*.spec.mjs and test/playwright/unit/component/Splitter.spec.mjs, plus the full unit tier.
  • AC-3: The Workstation splitter e2e specs stay green locally: DockSplitterZoneIdNL, WorkstationEdgeSplitterNL, WorkstationSplitterGridGeometryNL, WorkstationDragTextSelectionNL.

Out of Scope

  • A general "the innermost drag source owns the gesture" rule in DomEvent for every nested drag source. That is a wider engine decision. This ticket fixes the splitter, whose gesture is never content to sort.

Avoided Traps

  • Excluding splitters in container.DragZone#isDraggableItem (the other option in the trace). It would hard-code one component type into the generic container contract and change the sort index map of containers that hold splitters between sortable items. The bubbling drag:end would also still reach every ancestor.
  • Clearing neo-is-dragging on release. As #17883's traps put it, a stuck class is a symptom; clearing it would hide a session that should never have opened.

Related

  • #20585: where it surfaced, with the review trace.
  • #17883: the iframe-crossing splitter arm whose page composes the dashboard.
  • #20497: the 13.4 cut that this pre-existing finding should not ship into.

Live latest-open + closed sweep: checked latest 20 open + closed searches ("splitter drag sort dashboard", "neo-is-dragging splitter"; Out of Scope / Avoided Traps read on #17883 and #8441) at 2026-11-08T08:01Z; no equivalent or prior exclusion found. A2A in-flight sweep: last 30 messages (all read states), no claim on this scope. MC sweep: "splitter drag leaves the dashboard stuck dragging, page stops taking pointer input after resize", 6 results, no prior decision found. Own-assignment sweep: 2 open (#20497, #17171), none overlapping.

Origin Session ID: 6a6777e3-6518-4cc5-ae02-dc5b1f497005 Retrieval Hint: "splitter drag:start bubbles into the parent dashboard SortZone"