diff --git a/packages/amis-core/src/components/Overlay.tsx b/packages/amis-core/src/components/Overlay.tsx index 9dc16cc82..7ddd1191b 100644 --- a/packages/amis-core/src/components/Overlay.tsx +++ b/packages/amis-core/src/components/Overlay.tsx @@ -83,13 +83,7 @@ class Position extends React.Component { if (!target || !target.offsetWidth) { // 靠这个 re-render 来重置 position - return this.setState({ - ready: false, - positionLeft: 0, - positionTop: 0, - arrowOffsetLeft: null, - arrowOffsetTop: null - }); + return this.setState({}); } const watchTargetSizeChange = this.props.watchTargetSizeChange;