LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 19, 2026, 9:16 PM
updatedAtNov 20, 2026, 4:39 AM
githubUrlhttps://github.com/neomjs/neo/issues/21512
authorneo-gemini-maryam
commentsCount0
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 4:39 AM

An un-sized ComboBox or Country field collapses its input in align-start containers

Closed v14.0.0/archive-v14-0-0-chunk-5 bughelp wantedgood first issuedesignai
neo-gemini-maryam
neo-gemini-maryam commented on Nov 19, 2026, 9:16 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

Surfaced during #21178 (examples/grid/nestedRecordFields/EditUserDialog.mjs, which instructs: "If the narrow Country field is an engine defect, file it and work around it here"). Inside a Neo.container.Base or Neo.dialog.Base bodyContainer where fields carry no explicit width, Neo.form.field.Text and Neo.form.field.Date render a normal-width input (~150 px in align: 'start', full container width in align: 'stretch'), while Neo.form.field.ComboBox and subclasses (Country, Chip, Color) collapse their input box when labelPosition is 'left' (the TextField default) so the value text ("Germany") overlaps the clear and picker triggers or disappears completely.

The Problem

Two coupled engine defaults interact to crush un-sized ComboBox subclasses:

  1. ComboBox (typeAhead: true by default) wraps the input and typeahead overlay in .neo-input-field-wrapper and takes both <input> elements out of flow (position: absolute; inset: 0 in resources/css/src/form/field/ComboBox.css:2-9), leaving .neo-input-field-wrapper with zero intrinsic content width and only flex: 1 1 30px.
  2. To work around that collapsed intrinsic width in inline-label demos (#6914), src/form/field/ComboBox.mjs:166 hardcoded width: 150 on ComboBox.config. Because Neo.form.field.Text defaults labelPosition to 'left' and labelWidth to 150, width: 150 caps the entire label + input + triggers box to 150 px (150 - 150 = 0 px remaining for the input wrapper), and its inline style="width: 150px" also prevents ComboBox, Country, Chip, and Color from stretching inside align: 'stretch' containers!

The Architectural Reality

  • resources/css/src/form/field/ComboBox.css:2-9: both .neo-textfield-input and .neo-typeahead-input use position: absolute; inset: 0.
  • src/form/field/ComboBox.mjs:161-166: width: 150 (#6914, "Default width to prevent rendering issues.") overrides Neo.component.Base's width: null.
  • resources/css/src/form/field/Text.css:403-410: .neo-input-wrapper { display: flex; flex: 1 1 1px; }.
  • Subclass sweep (get_class_hierarchy): Neo.form.field.Country, Neo.form.field.Chip, and Neo.form.field.Color all extend Neo.form.field.ComboBox without overriding width.
  • Design authority: src/form/field/ComboBox.mjs:38 (@extends Neo.form.field.Picker) — a ComboBox without an explicit width in the same vbox container as TextField / DateField is expected to size and stretch identically rather than collapsing onto its triggers.

The Fix

(Stage-2 Prescription checked at intake: resources/css/src/form/field/ComboBox.css + src/form/field/ComboBox.mjs — together own the concern; ComboBox.css restores intrinsic <input> sizing, retiring ComboBox.mjs's #6914 width: 150 workaround.)

  1. In resources/css/src/form/field/ComboBox.css, keep .neo-textfield-input:not(.neo-typeahead-input) in normal flow inside .neo-input-field-wrapper (display: flex; flex: 1 1 auto; min-width: 0; position: relative on .neo-input-field-wrapper, position: relative; z-index: 1; min-width: 0 on the real input) while only .neo-typeahead-input uses position: absolute; inset: 0; pointer-events: none, and remove the obsolete width: 150 default in src/form/field/ComboBox.mjs so ComboBox and its subclasses inherit width: null like TextField and Picker. Rebuild themes (npm run build-themes -- -n -e dev -t all).
  2. Add a browser component spec in test/playwright/component/form/field/ComboBox.spec.mjs mounting TextField, ComboBox (left and inline), and Country inside an align: 'start' Neo.container.Base (no explicit width) plus an explicitly constrained width: 120 ComboBox, asserting readable >= 120 px input widths matching TextField, zero trigger overlap, 1:1 typeahead overlay alignment, and clean 120 px shrink without overflow.

Acceptance Criteria

  • AC-1: Inside an align: 'start' Neo.container.Base (no explicit width on the container or field), Neo.form.field.ComboBox (left and inline labels) and Neo.form.field.Country render an input area at least 120 px wide with zero overlap between text and triggers, and stretch cleanly inside align: 'stretch' containers.
  • AC-2: When an explicit width or align: 'stretch' constrains a ComboBox (including grid cell editors and narrow toolbars), the field respects that width without horizontal overflow.
  • AC-3: npm run build-themes -- -n -e dev -t all succeeds cleanly across all themes.
  • AC-4: A Playwright spec reproduces the collapsed width on dev and passes at head.

Out of Scope

  • Changing Neo.container.Panel's default bodyContainer alignment across all panels/dialogs.
  • Renewing examples/grid/nestedRecordFields (handled in #21178).

Avoided Traps

  • Setting a rigid min-width: 180px on .neo-combobox itself, which would break compact toolbar/header-filter comboboxes explicitly configured with width: 100 or width: 120 — keeping the real <input> in normal flow with min-width: 0 preserves shrinkability.

Related

Live latest-open + closed sweep: checked latest 20 open + open and closed search ("ComboBox width", "Country field narrow", "neo-input-field-wrapper"; read Out of Scope / Avoided Traps on #21389 and #21381) at 2026-11-19T20:16Z; no equivalent or prior exclusion found. Backlog: 70 open (red band), folded under #21329 (17 existing subs). A2A in-flight claim sweep: last 30 messages across all read-states at 2026-11-19T20:16Z; no overlapping claim. MC sweep: query_raw_memories("ComboBox Country field crushed narrow width triggers overlap input align start"), 5 results (#9051 inline-label padding history), no prior decision found. Own-assignment sweep: 3 open (#21185, #21177, #21178); #21178 explicitly scopes filing this engine defect separately. Structure-map: N/A (src/form/field/ + resources/css/src/form/field/).

Decision Record impact: none.

Origin Session ID: 095892f3-027f-47aa-8092-a13ae31f72ca Retrieval Hint: "ComboBox CountryField narrow 30px width 150 position absolute neo-input-field-wrapper align start"

🧭 Maryam · @neo-gemini-maryam · Gemini 4 Carbon · Antigravity

tobiu referenced in commit e683efc - "fix(form): keep ComboBox and Country intrinsic input width without fixed 150px cap (#21512) (#21537) on Nov 20, 2026, 4:39 AM
tobiu closed this issue on Nov 20, 2026, 4:39 AM