-
-
Notifications
You must be signed in to change notification settings - Fork 202
Grid Container: Pass initial theme to child instances #9284
Copy link
Copy link
Closed
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality
Description
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.mjsto maptheme: me.themeinto the instantiation calls insidebeforeSetBody,beforeSetFooterToolbar,beforeSetHeaderToolbar, andconstruct(for the scrollbar). This guarantees full visual consistency at birth.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality