LearnNewsExamplesServices
Frontmatter
id19931
titleexamples/date/selectorContainer throws on load and renders nothing
stateClosed
labels
bughelp wantedgood first issuehacktoberfestai
assigneesUddoo
createdAtOct 20, 2026, 11:19 PM
updatedAtOct 21, 2026, 11:12 AM
githubUrlhttps://github.com/neomjs/neo/issues/19931
authorneo-opus-ada
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 21, 2026, 11:12 AM

examples/date/selectorContainer throws on load and renders nothing

Closed v13.3.0/archive-v13-3-0-chunk-2 bughelp wantedgood first issuehacktoberfestai
neo-opus-ada
neo-opus-ada commented on Oct 20, 2026, 11:19 PM

Claim it first: comment on this issue before you start, and check the open pull requests for one that already points here. We merge the first approve-worthy PR (see CONTRIBUTING.md, point 3). This row comes from #19920, where @bercedev has first pick on its rows.

Context

Welcome! This is one row of #19920, split out so that its fix closes its own ticket. You need a fork, Node and the dev server (npm run server-start); no Agent OS, Docker or AI tooling.

A headless sweep of every example page on 2026-10-20 found examples/date/selectorContainer throwing during construction and rendering nothing. It still does on dev f5decee2c0. Open http://localhost:8080/examples/date/selectorContainer/index.html and the console shows TypeError: Cannot read properties of null (reading 'format'). The page fails the same way at 13.2.0, so this predates 13.3.

The Problem

The stack runs from src/date/DayViewComponent.mjs:109 (me.intlFormatDay.format(date)), up through createContent, to construct (:70), which calls this.createContent(true).

The Architectural Reality

  • intlFormatDay arrives through bind (:38) from a state provider, and its default is null (:51).
  • A bound config is set after construction, so code inside construct still sees null.

The Fix

The likely cause, which the fix confirms or corrects: construct builds the day cells before the bound formatter exists. Let the content wait for the formatter, or build it without the formatted text while the formatter is null and fill the text in when it arrives.

Acceptance Criteria

  • AC-1: examples/date/selectorContainer loads with no page error and renders its date selectors.
  • AC-2: a unit test in test/playwright/unit/ fails before the fix and passes after it.

Out of Scope

  • The other rows of #19920, which have their own tickets. examples/calendar/weekview fails in a similar way and has its own ticket.

Related

#19920 (the sweep's seven rows; two fixed by #19923 and #19924).

unowned-rationale: a good first issue for an outside contributor; a maintainer reviews the pull request.

Live latest-open sweep: the latest open issues at the time of filing, plus an open-issue search for this page and its error: no equivalent. MC sweep: covered by #19920's. Own-assignment sweep: none overlapping.

Origin Session ID: a292a9c9-07fa-4eb6-8ab2-638be8374fa2

bercedev cross-referenced by #19932 on Oct 21, 2026, 12:39 AM
Uddoo
Uddoo Oct 21, 2026, 9:52 AM

I'm starting work on #19931: reproduce the selector-container failure, keep day-view initialization safe while its bound formatter is unavailable, and verify the regression in the unit tier and the rendered example.

This is an autonomous contribution using OpenAI Codex for @Uddoo, covering investigation, implementation, testing, and self-review. The underlying model identifier is not exposed in this session.

  • 2026-10-21T08:12:07Z @github-actions cross-referenced by #26
Uddoo cross-referenced by PR #19945 on Oct 21, 2026, 10:51 AM
tobiu assigned to @Uddoo on Oct 21, 2026, 10:51 AM
tobiu closed this issue on Oct 21, 2026, 11:12 AM
tobiu referenced in commit 3307457 - "fix(date): defer day-view rendering until bound inputs arrive (#19931) (#19945)" on Oct 21, 2026, 11:12 AM