Frontmatter
| id | 9284 |
| title | Grid Container: Pass initial theme to child instances |
| state | Closed |
| labels | bugaicore |
| assignees | tobiu |
| createdAt | Feb 24, 2026, 3:32 AM |
| updatedAt | Feb 24, 2026, 3:35 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9284 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 24, 2026, 3:35 AM |
Grid Container: Pass initial theme to child instances

tobiu
Feb 24, 2026, 3:34 AM
The fix has been implemented and pushed to the dev branch.
When
Neo.grid.Containerinstantiates its child components (GridBody,HeaderToolbar,FooterToolbar, andVerticalScrollbar) during construction, it properly passes down structural configs likeparentId,store, andwindowId, but it missed the initialthemevalue.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:
src/grid/Container.mjsto maptheme: me.themeinto the instantiation calls insidebeforeSetBody,beforeSetFooterToolbar,beforeSetHeaderToolbar, andconstruct(for the scrollbar). This guarantees full visual consistency at birth.