Don't carry over incorrect/harmful vote menu between videos

This commit is contained in:
Ajay 2022-09-04 21:58:56 -04:00
parent 00f134029a
commit ee25b41d7e
2 changed files with 6 additions and 0 deletions

View file

@ -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 */}

View file

@ -685,6 +685,7 @@ class PreviewBar {
} else {
// Hide chapters menu again
chaptersContainer.style.display = "none";
this.chapterVote.setVisibility(false);
}
}
}