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

pull/6067/head
lchrennew 2 years ago committed by GitHub
parent 5e60d7c3b0
commit 4cdda535a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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