Browse Source

fix(defaultConfigProvider): add getPopupContainer (#6425), close #6419

pull/6428/head
Cherry7 2 years ago committed by GitHub
parent
commit
2eaad16331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/config-provider/context.ts

1
components/config-provider/context.ts

@ -154,6 +154,7 @@ export const defaultConfigProvider: ConfigProviderInnerProps = {
return suffixCls ? `ant-${suffixCls}` : 'ant'; return suffixCls ? `ant-${suffixCls}` : 'ant';
}, },
iconPrefixCls: computed(() => defaultIconPrefixCls), iconPrefixCls: computed(() => defaultIconPrefixCls),
getPopupContainer: computed(() => () => document.body),
}; };
export const useConfigContextInject = () => { export const useConfigContextInject = () => {

Loading…
Cancel
Save