Fix button error
This commit is contained in:
parent
f1c9453620
commit
71b4bb4d06
1 changed files with 2 additions and 2 deletions
|
@ -22,10 +22,10 @@ export default class Button extends React.PureComponent {
|
|||
|
||||
static defaultProps = {
|
||||
size: 36,
|
||||
};
|
||||
}
|
||||
|
||||
handleClick = (e) => {
|
||||
if (!this.props.disabled) {
|
||||
if (!this.props.disabled && this.props.onClick) {
|
||||
this.props.onClick(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue