LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 18, 2026, 3:02 PM
updatedAtNov 18, 2026, 4:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/21324
authorneo-opus-ada
commentsCount0
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 21336 The form app reads as a real multi-step form, and works on a phone, [x] 21334 Every field type shows its states in the workbench
closedAtNov 18, 2026, 4:02 PM

Color list throws, chip label overlaps its chips, form app Save throws

Closed v14.0.0/archive-v14-0-0-chunk-4 bugairegressioncore
neo-opus-ada
neo-opus-ada commented on Nov 18, 2026, 3:02 PM

Context

I found these while opening every Forms & Fields entry for the Engine 14 slate (#21142, comment 6980411401) on dev 0128668721. The target in #21140 publishes the field types as tiles cropped at rest and renews the form app as a card, and a visitor meets all three defects there.

The Problem

  1. The color field's list never opens. Clicking the trigger of examples/form/field/color throws, and nothing opens:
       TypeError: me.colorFormatter is not a function
        at Color.createItemContent (src/list/Color.mjs:60:27)
        at Color.createItem (src/list/Base.mjs:523:35)
        at Color.createItems (src/list/Base.mjs:666:22)
        at Color.onStoreLoad (src/list/Base.mjs:977:16)
        at Color.afterSetStore (src/list/Base.mjs:418:37)
  2. The chip field's inline label sits over its chips. examples/form/field/chip opens with "US States" drawn across "California" and "New York". The label moves above them only after focus.
  3. The form app's Save throws. Pressing Save in apps/form raises me is not defined, and nothing is stored.

The Architectural Reality

  1. ComboBox#beforeSetListConfig() (src/form/field/ComboBox.mjs:387) calls parseItemConfigs(value) to resolve the '@config:' strings in listConfig. Commit 6c8b81c848 (12 Jan 2026, #8571/#8572) changed core.Base#parseItemConfigs() (src/core/Base.mjs:857): it now reads a plain object as a keyed items map and recurses into each value, so the object's own entries are never resolved. form.field.Color sets colorField: '@config:colorField' and colorFormatter: '@config:colorFormatter' in its listConfig (src/form/field/Color.mjs:41-42), and list.Color receives the literal strings. wrapper.AmChart#beforeSetChartConfig() (src/component/wrapper/AmChart.mjs:137) passes one config object the same way. The COVID apps' world maps set maxValue: '@config:heatRulesMaxValue' in their heat rules (apps/covid/view/WorldMapComponent.mjs:57, apps/sharedcovid/view/WorldMapComponent.mjs:57), which the old path reached through the series array.
  2. form.field.Text toggles neo-has-content only in afterSetInputValue() (src/form/field/Text.mjs:561) and afterSetPlaceholderText(). A chip field holds its value in chips and keeps its input empty, so a value never reaches that toggle. Design authority: Chip#hasContent() counts the value, return this.value?.length > 0 || super.hasContent() (src/form/field/Chip.mjs:433), and Text's own rule reads "labelPosition: 'inline' should keep the label at the top" for a field with content (src/form/field/Text.mjs:784-785).
  3. FormContainerController#onSaveButtonClick() reads me without declaring it (apps/form/view/FormContainerController.mjs:47).

The Fix

  1. ComboBox#beforeSetListConfig() and AmChart#beforeSetChartConfig() pass their config as one item, this.parseItemConfigs([value]), which is the path every single object took before 6c8b81c848. The keyed-map branch stays for container.Base items (src/container/Base.mjs:880).
  2. Chip#afterSetValue() toggles neo-has-content from hasContent() once its value list is synced.
  3. onSaveButtonClick() declares me.

Acceptance Criteria

  • AC-1: In examples/form/field/color, the trigger opens the color list with a coloured square per item and no console error. A unit spec pins that the list's colorFormatter and colorField are the field's own; it is red on dev and green with the fix.
  • AC-2: A unit spec pins that a keyed items map still resolves per item, the branch #8571 added.
  • AC-3: examples/form/field/chip opens with its label above the chips. A unit spec pins neo-has-content on a chip field whose value is set while its input is empty; it is red on dev.
  • AC-4: In apps/form, Save stores the form's values under the localStorage key neo-form with no error.
  • AC-5: The COVID world map's heat rule receives a number for maxValue, not the '@config:' string.
  • AC-6: The pull request shows 1440 × 900 frames of the color list open, the chip field at rest and the form app after Save, before and after the fix.

Out of Scope

  • The email field's error layout. In a left-labelled field without a character count, the error message shares the input's row and shrinks the input to its 50 px min-width. Where every text field shows its error is a layout decision of its own, captured as a defect-note.
  • The field tiles and the states of #21140's Tiles and Forms & Fields lanes.

Avoided Traps

  • Teaching parseItemConfigs() to guess whether an object is a keyed items map or one config. The callers know which one they pass.
  • Toggling neo-has-content in Text#afterSetValue() for every field. Text and ComboBox already keep value and input in step; only the chip field holds its value outside the input.

Related

Parent #21140 · rows on #21142 · the commit that regressed listConfig and chartConfig: 6c8b81c848 (#8571, #8572).

Live latest-open + closed sweep: latest 20 open (65 open, red band) plus open and closed searches ("colorFormatter", "color field list", "parseItemConfigs", "chip field label", "email field error", "form app save", "listConfig @config") at 2026-11-18T13:59Z. No equivalent. #8572 is the closed refactor that introduced the regression; #4498 (closed) is the earlier exclusion of Neo classes from the same method. A2A in-flight sweep: latest 30 messages, all read-states, at 14:00Z, with no claim on these fields. MC sweep (color list throws, chip label over chips, email error squeezing its input) found no prior report. Own-assignment sweep: 3 open, none on these files.

Decision Record impact: none.

Retrieval Hint: "parseItemConfigs single config object regression since January, color field list colorFormatter string, chip field neo-has-content inline label, form app save me undefined, covid heat rules @config"

⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code