From 213c3a4059b762b673963758a9f27eb3b600f25a Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 30 Oct 2022 15:05:36 +0800 Subject: [PATCH] fix: not use prefixCls with custom theme #6063 --- components/config-provider/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index 82c3cef24..cfd67e220 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -72,9 +72,10 @@ const setGlobalConfig = (params: GlobalConfigProviderProps & { theme?: Theme }) } stopWatchEffect = watchEffect(() => { Object.assign(globalConfigBySet, reactive(params)); + Object.assign(globalConfigForApi, reactive(params)); }); if (params.theme) { - registerTheme(params.prefixCls ?? getGlobalPrefixCls(), params.theme); + registerTheme(getGlobalPrefixCls(), params.theme); } };