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
4e4f06cdea
commit
16a455c6f2
@ -82,14 +82,14 @@ class Position extends React.Component<any, any> {
|
||||
}
|
||||
|
||||
if (!target || !target.offsetWidth) {
|
||||
return;
|
||||
// return this.setState({
|
||||
// ready: false,
|
||||
// positionLeft: 0,
|
||||
// positionTop: 0,
|
||||
// arrowOffsetLeft: null,
|
||||
// arrowOffsetTop: null
|
||||
// });
|
||||
// 靠这个 re-render 来重置 position
|
||||
return this.setState({
|
||||
ready: false,
|
||||
positionLeft: 0,
|
||||
positionTop: 0,
|
||||
arrowOffsetLeft: null,
|
||||
arrowOffsetTop: null
|
||||
});
|
||||
}
|
||||
|
||||
const watchTargetSizeChange = this.props.watchTargetSizeChange;
|
||||
|
Loading…
Reference in New Issue
Block a user