kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix button error
rodzic
f1c9453620
commit
71b4bb4d06
|
@ -22,10 +22,10 @@ export default class Button extends React.PureComponent {
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
size: 36,
|
size: 36,
|
||||||
};
|
}
|
||||||
|
|
||||||
handleClick = (e) => {
|
handleClick = (e) => {
|
||||||
if (!this.props.disabled) {
|
if (!this.props.disabled && this.props.onClick) {
|
||||||
this.props.onClick(e);
|
this.props.onClick(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue