mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 04:53:43 +02:00
Don't carry over incorrect/harmful vote menu between videos
This commit is contained in:
parent
00f134029a
commit
ee25b41d7e
2 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,11 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
|
|||
}
|
||||
|
||||
render(): React.ReactElement {
|
||||
if (this.tooltip && !this.state.show) {
|
||||
this.tooltip.close();
|
||||
this.tooltip = null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Upvote Button */}
|
||||
|
|
|
@ -685,6 +685,7 @@ class PreviewBar {
|
|||
} else {
|
||||
// Hide chapters menu again
|
||||
chaptersContainer.style.display = "none";
|
||||
this.chapterVote.setVisibility(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue