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

Co-authored-by: seven <zhu.hui93@iwhalecloud.com>
This commit is contained in:
ZH-seven 2022-10-27 11:23:39 +08:00 committed by GitHub
parent 0f63c5d6bc
commit d4a5c76d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}