Skip to content

Commit

Permalink
fix(player): update slider chapters when track mode toggled
Browse files Browse the repository at this point in the history
ref #1011
  • Loading branch information
mihar-22 committed Nov 20, 2023
1 parent 766aa7a commit 8cf48b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vidstack/src/core/tracks/text/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Dispose } from 'maverick.js';
import { isString, listenEvent } from 'maverick.js/std';
import type { VTTCue } from 'media-captions';

import type { TextTrack } from './text-track';
import type { TextTrackList } from './text-tracks';

Expand Down Expand Up @@ -33,6 +34,7 @@ export function observeActiveTextTrack(

if (!track) {
onChange(null);
currentTrack = null;
return;
}

Expand Down

0 comments on commit 8cf48b4

Please sign in to comment.