Browse Source

fix: Cannot use custom prefixCls with custom theme color (#6063)

pull/6067/head
lchrennew 2 years ago committed by GitHub
parent
commit
4cdda535a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/config-provider/index.tsx

2
components/config-provider/index.tsx

@ -74,7 +74,7 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme })
Object.assign(globalConfigBySet, reactive(params)); Object.assign(globalConfigBySet, reactive(params));
}); });
if (params.theme) { if (params.theme) {
registerTheme(getGlobalPrefixCls(), params.theme); registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme);
} }
}; };

Loading…
Cancel
Save