File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/packages/lowcoder/src/comps/controls Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -873,15 +873,15 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
873873 const { appliedThemeId, preventStyleOverwriting } = comp ?. comp ?. container || comp ?. comp || { } ;
874874 const appTheme = isPreviewTheme || isDefaultTheme || ( ! preventStyleOverwriting && ! preventAppStylesOverwriting )
875875 ? theme ?. theme
876- : undefined ;
876+ : defaultTheme ;
877877 const compTheme = isPreviewTheme || isDefaultTheme || ( compType && ! preventStyleOverwriting && ! preventAppStylesOverwriting )
878878 ? {
879879 ...(
880880 theme ?. theme ?. components ?. [ compType ] ?. [ styleKey ]
881881 || defaultTheme . components ?. [ compType ] ?. [ styleKey ]
882882 ) as unknown as Record < string , string >
883883 }
884- : undefined ;
884+ : defaultTheme . components ?. [ compType ] ?. [ styleKey ] ;
885885 const styleProps = ( ! comp && ! compType ) || preventStyleOverwriting || preventAppStylesOverwriting || appliedThemeId === themeId
886886 ? props as ColorMap
887887 : { } as ColorMap ;
You can’t perform that action at this time.
0 commit comments