fix(highlight) fix allowing disabled button to execute handler (#11128)
This commit is contained in:
parent
506f72d43e
commit
c5fbe14de2
|
@ -43,10 +43,12 @@ export default class AbstractHighlightButton<P: Props> extends Component<P> {
|
|||
* @returns {void}
|
||||
*/
|
||||
_onClick() {
|
||||
const { dispatch } = this.props;
|
||||
const { _disabled, dispatch } = this.props;
|
||||
|
||||
if (!_disabled) {
|
||||
dispatch(highlightMeetingMoment());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue