Skip to content

Commit 8cc3843

Browse files
committed
Run chapters clear when preview bar cleared
1 parent c470109 commit 8cc3843

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js-components/previewBar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ class PreviewBar {
214214
while (this.container.firstChild) {
215215
this.container.removeChild(this.container.firstChild);
216216
}
217+
218+
if (this.customChaptersBar) this.customChaptersBar.style.display = "none";
219+
this.originalChapterBar?.style?.removeProperty("display");
217220
}
218221

219222
set(segments: PreviewBarSegment[], videoDuration: number): void {

0 commit comments

Comments
 (0)