Skip to content

Commit 213c3a4

Browse files
committed
fix: not use prefixCls with custom theme #6063
1 parent 4cdda53 commit 213c3a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/config-provider/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme })
7272
}
7373
stopWatchEffect = watchEffect(() => {
7474
Object.assign(globalConfigBySet, reactive(params));
75+
Object.assign(globalConfigForApi, reactive(params));
7576
});
7677
if (params.theme) {
77-
registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme);
78+
registerTheme(getGlobalPrefixCls(), params.theme);
7879
}
7980
};
8081

0 commit comments

Comments
 (0)