Browse Source

fix: Tabs get getPopupContainer from ConfigProvider(#25844) (#38238)

Co-authored-by: seven <zhu.hui93@iwhalecloud.com>
pull/38251/head
ZH-seven 2 years ago
committed by GitHub
parent
commit
d4a5c76d04
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/tabs/index.tsx

3
components/tabs/index.tsx

@ -44,7 +44,7 @@ function Tabs({
...props
}: TabsProps) {
const { prefixCls: customizePrefixCls, moreIcon = <EllipsisOutlined /> } = props;
const { getPrefixCls, direction } = React.useContext(ConfigContext);
const { getPrefixCls, direction, getPopupContainer } = React.useContext(ConfigContext);
const prefixCls = getPrefixCls('tabs', customizePrefixCls);
let editable: EditableConfig | undefined;
@ -77,6 +77,7 @@ function Tabs({
return (
<RcTabs
direction={direction}
getPopupContainer={getPopupContainer}
moreTransitionName={`${rootPrefixCls}-slide-up`}
{...props}
items={mergedItems}

Loading…
Cancel
Save