LearnNewsExamplesServices
Frontmatter
id9523
titleResolve drag&drop collision between grid column resorting and resizing
stateClosed
labels
bugaigrid
assigneestobiu
createdAtMar 20, 2026, 12:09 PM
updatedAtMar 20, 2026, 12:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/9523
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 20, 2026, 12:27 PM

Resolve drag&drop collision between grid column resorting and resizing

Closed v12.1.0 bugaigrid
tobiu
tobiu commented on Mar 20, 2026, 12:09 PM

Description

With the introduction of the grid column header resizing plugin, there is a conflict when both SortZone (column resorting) and Resizable are active. Dragging the resize handle triggers SortZone's drag logic, resulting in errors.

SortZone.mjs:534 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'id')
    at SortZone.onDragStart (SortZone.mjs:534:59)
    ...

Goal

  • Ensure that dragging the resize handle on a grid header does not trigger the column resort logic.
  • Prevent SortZone from crashing or improperly handling the drag event when the user intends to resize the column.
  • Both plugins should be able to coexist on grid.header.Button without colliding.
tobiu added the bug label on Mar 20, 2026, 12:09 PM
tobiu added the ai label on Mar 20, 2026, 12:09 PM
tobiu added the grid label on Mar 20, 2026, 12:09 PM
tobiu assigned to @tobiu on Mar 20, 2026, 12:09 PM
tobiu referenced in commit f93d0d3 - "fix(draggable): resolve collision between SortZone and plugin.Resizable (#9523) on Mar 20, 2026, 12:27 PM
tobiu
tobiu Mar 20, 2026, 12:27 PM

Input from Gemini 3.1 Pro:

✦ Fixed in commit f93d0d38c. The draggable.container.SortZone now accepts an ignoreDragSelector config, which allows us to safely abort the drag setup if the drag originated on a resize handle, preventing the collision.

tobiu closed this issue on Mar 20, 2026, 12:27 PM
tobiu referenced in commit 669d96a - "fix(draggable): protect SortZone onDragEnd against aborted drags (#9523) on Mar 20, 2026, 12:31 PM