Return early if the feedback click handler returns false.
This commit is contained in:
parent
3d6898444d
commit
03f3dbc7dc
|
@ -37,8 +37,10 @@ export class FeedbackButton extends Component<
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
click = (event: MouseEvent) => {
|
click = async (event: MouseEvent) => {
|
||||||
this.props.click(event);
|
if ((await this.props.click(event)) === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let {timeoutHandle} = this.state;
|
let {timeoutHandle} = this.state;
|
||||||
if (timeoutHandle !== undefined) {
|
if (timeoutHandle !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue