mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复 popOver 可能不显示的问题
This commit is contained in:
parent
8b144333e1
commit
d938e410a9
@ -83,13 +83,7 @@ class Position extends React.Component<any, any> {
|
|||||||
|
|
||||||
if (!target || !target.offsetWidth) {
|
if (!target || !target.offsetWidth) {
|
||||||
// 靠这个 re-render 来重置 position
|
// 靠这个 re-render 来重置 position
|
||||||
return this.setState({
|
return this.setState({});
|
||||||
ready: false,
|
|
||||||
positionLeft: 0,
|
|
||||||
positionTop: 0,
|
|
||||||
arrowOffsetLeft: null,
|
|
||||||
arrowOffsetTop: null
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const watchTargetSizeChange = this.props.watchTargetSizeChange;
|
const watchTargetSizeChange = this.props.watchTargetSizeChange;
|
||||||
|
Loading…
Reference in New Issue
Block a user