Fix button error
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user