mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +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}
|
||||
classPrefix={ns}
|
||||
className={cx('DropDown-popover')}
|
||||
style={{minWidth: this.target.offsetWidth}}
|
||||
style={{minWidth: this.target?.offsetWidth}}
|
||||
>
|
||||
{body}
|
||||
</PopOver>
|
||||
|
Loading…
Reference in New Issue
Block a user