fix: tooltipWrapper容器挂载问题 (#4719)

This commit is contained in:
qianxiaofendou 2022-06-28 18:28:46 +08:00 committed by GitHub
parent 3b2372202e
commit 5dee09b016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,8 @@ export default class TooltipWrapper extends React.Component<
showArrow, showArrow,
disabled, disabled,
enterable, enterable,
data data,
env
} = this.props; } = this.props;
const tooltipObj: TooltipObject = { const tooltipObj: TooltipObject = {
@ -239,7 +240,7 @@ export default class TooltipWrapper extends React.Component<
placement, placement,
trigger, trigger,
rootClose, rootClose,
container, container: container !== undefined ? container : (env && env.getModalContainer ? env.getModalContainer : undefined),
tooltipTheme, tooltipTheme,
tooltipClassName, tooltipClassName,
mouseEnterDelay, mouseEnterDelay,