LearnNewsExamplesServices
Frontmatter
id9284
titleGrid Container: Pass initial theme to child instances
stateClosed
labels
bugaicore
assigneestobiu
createdAtFeb 24, 2026, 3:32 AM
updatedAtFeb 24, 2026, 3:35 AM
githubUrlhttps://github.com/neomjs/neo/issues/9284
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 24, 2026, 3:35 AM

Grid Container: Pass initial theme to child instances

Closed v12.0.0 bugaicore
tobiu
tobiu commented on Feb 24, 2026, 3:32 AM

When Neo.grid.Container instantiates its child components (GridBody, HeaderToolbar, FooterToolbar, and VerticalScrollbar) during construction, it properly passes down structural configs like parentId, store, and windowId, but it missed the initial theme value.

Because of this, if a Grid was created dynamically while the application was already in dark mode, these child components (and everything inside them) would render with the default light mode until a subsequent reactive toggle updated the global theme.

Resolution:

  • Updated src/grid/Container.mjs to map theme: me.theme into the instantiation calls inside beforeSetBody, beforeSetFooterToolbar, beforeSetHeaderToolbar, and construct (for the scrollbar). This guarantees full visual consistency at birth.
tobiu added the bug label on Feb 24, 2026, 3:32 AM
tobiu added the ai label on Feb 24, 2026, 3:32 AM
tobiu added the core label on Feb 24, 2026, 3:32 AM
tobiu assigned to @tobiu on Feb 24, 2026, 3:32 AM
tobiu referenced in commit 99f45f5 - "fix(grid): Pass initial theme to child instances (#9284) on Feb 24, 2026, 3:34 AM
tobiu
tobiu Feb 24, 2026, 3:34 AM

The fix has been implemented and pushed to the dev branch.

tobiu closed this issue on Feb 24, 2026, 3:35 AM