Skip to content

Commit 4cdda53

Browse files
authored
fix: Cannot use custom prefixCls with custom theme color (#6063)
1 parent 5e60d7c commit 4cdda53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/config-provider/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme })
7474
Object.assign(globalConfigBySet, reactive(params));
7575
});
7676
if (params.theme) {
77-
registerTheme(getGlobalPrefixCls(), params.theme);
77+
registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme);
7878
}
7979
};
8080

0 commit comments

Comments
 (0)