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) => {
|
||||
this.props.click(event);
|
||||
click = async (event: MouseEvent) => {
|
||||
if ((await this.props.click(event)) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
let {timeoutHandle} = this.state;
|
||||
if (timeoutHandle !== undefined) {
|
||||
|
|
Loading…
Reference in New Issue