diff options
author | Ajay Ramachandran <[email protected]> | 2020-04-02 00:44:38 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-04-02 00:44:38 -0400 |
commit | 72c98923f6699fee45ea4eec1a28a3980d89078a (patch) | |
tree | 3a61781568ea5b3b6023d13afb0562a13ac6d243 /src/components/SubmissionNoticeComponent.tsx | |
parent | 8ecea87c528982f64a481bfb92449eca8949afc3 (diff) | |
download | SponsorBlock-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.tsx | 5 |
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(); } |