Fixed close button on submission confirmation notice

This commit is contained in:
Ajay Ramachandran
2020-04-02 00:44:38 -04:00
parent 8ecea87c52
commit 72c98923f6
3 changed files with 16 additions and 8 deletions

View File

@@ -54,7 +54,8 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S
return (
<NoticeComponent noticeTitle={this.state.noticeTitle}
idSuffix={this.state.idSuffix}
ref={this.noticeRef}>
ref={this.noticeRef}
closeListener={this.cancel.bind(this)}>
{/* Text Boxes */}
{this.getMessageBoxes()}
@@ -127,7 +128,7 @@ class SubmissionNoticeComponent extends React.Component<SubmissionNoticeProps, S
}
cancel() {
this.noticeRef.current.close();
this.noticeRef.current.close(true);
this.contentContainer().resetSponsorSubmissionNotice();
}