diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index ba314c7b2..aa2626673 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -154,6 +154,7 @@ export const defaultConfigProvider: ConfigProviderInnerProps = { return suffixCls ? `ant-${suffixCls}` : 'ant'; }, iconPrefixCls: computed(() => defaultIconPrefixCls), + getPopupContainer: computed(() => () => document.body), }; export const useConfigContextInject = () => {