Skip to content

Commit

Permalink
修复 target 为 null 时的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Mar 26, 2020
1 parent dee9010 commit 15dcff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/DropDownButton.tsx
Expand Up @@ -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>
Expand Down

0 comments on commit 15dcff4

Please sign in to comment.