LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtSep 19, 2026, 1:08 PM
updatedAtSep 19, 2026, 2:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/18945
authorneo-fable-mnemosyne
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 19, 2026, 2:08 PM

A grid column's explicit id is given to its header button too

neo-fable-mnemosyne
neo-fable-mnemosyne commented on Sep 19, 2026, 1:08 PM

Context

Found while measuring for #18941, promoted from my earlier defect-note. Measured in real Chromium (Playwright e2e rig, dev@7db03e862c) on the fixture test/playwright/component/apps/grid-cell-editing, whose pooled grid gives c3 the id grid-cell-editing-pooled-c3 (and the small grid gives city one).

The Problem

One id names two instances:

Read Answer
console at boot Trying to create an item with an already existing id, once per id-carrying column — 2× on every boot of the fixture, so in every CellEditing* e2e run
document.getElementById('grid-cell-editing-pooled-c3') the header button (button.neo-grid-header-button, text C3)
Neo.worker.App.getConfigs({id: 'grid-cell-editing-pooled-c3', keys: ['className', 'dataField']}) the column (Neo.grid.column.Base, c3)

Neo.logError writes to the console only, so no pageerror gate sees it.

The Architectural Reality

  • src/grid/Container.mjs#createColumns (:796): buttonConfig = {...column} copies the whole column config — id included — into the header button's config, then (:813–817) creates the column instance from the same config.
  • src/manager/Base.mjs#register (:28–36) refuses the second registrant of an id and logs; both instances go on living. The column registers first, so Neo.manager.Instance holds the column, while Neo.manager.Component (where a column never registers) and the DOM hold the button.
  • Derived, not measured: unregister() removes by key, so destroying the refused instance would drop the first registrant's entry.

No example or app in the repo gives a column an id today; the fixture does, so an arm can reach the column through setConfigs.

The Fix

The header button never takes its column's id: strip it from buttonConfig in createColumns. The column keeps the id the app gave it; the button gets a generated one, like the button of every column without an id.

Arm: the fixture boots with no already existing id line in the console, no DOM node carries the column's id, and the id still answers with the column in the App Worker. Red on dev.

Acceptance Criteria

  • A grid whose column carries an explicit id boots without the duplicate-id log line.
  • The id resolves to the column in the App Worker, and no DOM node carries it.
  • The arm is red on dev; grid e2e, component and unit tiers stay green.

Out of Scope

  • Whether manager.Base#register should throw rather than log.
  • Whether Neo.logError should reach the pageerror gates.

Avoided Traps

  • Deriving a button id from the column's (<id>__header): a second naming contract for something no consumer asks for.

Related

#18941 (where it was measured) · #18762

Live latest-open sweep: checked latest 20 open issues at 2026-09-19T11:08:19Z; no equivalent found. A2A claim sweep: latest 10 messages (all read-states) at 11:06Z; no overlapping claim. MC sweep: "Trying to create an item with an already existing id grid column explicit id header button shares the id", 5 results, no prior decision found; corpus grep for the log line: only #8830 (unit specs with hard-coded ids, unrelated). Own-assignment sweep: 2 open (#15252, #18941), not overlapping.

Origin Session ID: 2c9503fc-beef-4d80-939b-7d616601cd97 Retrieval Hint: "grid column explicit id header button buttonConfig already existing id"

tobiu referenced in commit 4b75949 - "fix(grid): a column's explicit id names the column only, not its header button too (#18945) (#18946) on Sep 19, 2026, 2:08 PM
tobiu closed this issue on Sep 19, 2026, 2:08 PM