mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
修复 target 为 null 时的报错
This commit is contained in:
parent
d262852aa1
commit
cb7e2ac0f4
@ -124,7 +124,7 @@ export default class DropDownButton extends React.Component<
|
|||||||
onHide={this.close}
|
onHide={this.close}
|
||||||
classPrefix={ns}
|
classPrefix={ns}
|
||||||
className={cx('DropDown-popover')}
|
className={cx('DropDown-popover')}
|
||||||
style={{minWidth: this.target.offsetWidth}}
|
style={{minWidth: this.target?.offsetWidth}}
|
||||||
>
|
>
|
||||||
{body}
|
{body}
|
||||||
</PopOver>
|
</PopOver>
|
||||||
|
Loading…
Reference in New Issue
Block a user