From d938e410a9e78117282bbf8536284ab4aed9c24f Mon Sep 17 00:00:00 2001 From: 2betop <2698393+2betop@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:12:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20popOver=20=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-core/src/components/Overlay.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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;