Skip to content

Grid Container: Pass initial theme to child instances #9284

@tobiu

Description

@tobiu

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.

Metadata

Metadata

Assignees

Labels

aibugSomething isn't workingcoreCore framework functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions