aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SubmissionNoticeComponent.tsx
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-04-02 00:44:38 -0400
committerAjay Ramachandran <[email protected]>2020-04-02 00:44:38 -0400
commit72c98923f6699fee45ea4eec1a28a3980d89078a (patch)
tree3a61781568ea5b3b6023d13afb0562a13ac6d243 /src/components/SubmissionNoticeComponent.tsx
parent8ecea87c528982f64a481bfb92449eca8949afc3 (diff)
downloadSponsorBlock-72c98923f6699fee45ea4eec1a28a3980d89078a.tar.gz
SponsorBlock-72c98923f6699fee45ea4eec1a28a3980d89078a.zip
Fixed close button on submission confirmation notice
Diffstat (limited to 'src/components/SubmissionNoticeComponent.tsx')
-rw-r--r--src/components/SubmissionNoticeComponent.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/SubmissionNoticeComponent.tsx b/src/components/SubmissionNoticeComponent.tsx
index b85efce8..edb04b1c 100644
--- a/src/components/SubmissionNoticeComponent.tsx
+++ b/src/components/SubmissionNoticeComponent.tsx
@@ -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();
}