fix: 修复 popOver 可能不显示的问题

This commit is contained in:
2betop 2024-11-21 14:12:00 +08:00
parent 8b144333e1
commit d938e410a9

View File

@ -83,13 +83,7 @@ class Position extends React.Component<any, any> {
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;