Disable cancel button when submitting a comment.

This commit is contained in:
Franco Montenegro 2021-08-10 23:03:47 -03:00 committed by Thomas Zarebczan
parent bfdc2319c4
commit cc3600631e

View file

@ -332,7 +332,12 @@ export function CommentCreate(props: Props) {
} }
onClick={handleSupportComment} onClick={handleSupportComment}
/> />
<Button button="link" label={__('Cancel')} onClick={() => setIsReviewingSupportComment(false)} /> <Button
disabled={isSubmitting}
button="link"
label={__('Cancel')}
onClick={() => setIsReviewingSupportComment(false)}
/>
</div> </div>
</div> </div>
); );