Skip to content

Commit

Permalink
fix: off text tracks should be set based on current state (#4775)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored and gkatsev committed Dec 4, 2017
1 parent 4dd000c commit 904989d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class OffTextTrackMenuItem extends TextTrackMenuItem {
options.selectable = true;

super(player, options);
this.selected(true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class TextTrackMenuItem extends MenuItem {
tracks.dispatchEvent(event);
});
}

// set the default state based on current tracks
this.handleTracksChange();
}

/**
Expand Down

0 comments on commit 904989d

Please sign in to comment.