mirror of
https://github.com/videojs/video.js.git
synced 2025-07-15 01:34:23 +02:00
fix(play-toggle): missing svg play icon (#8337)
Svg play icon is missing when player is initialized with class `vjs-has-started`. - add `setIcon` to the `play-toggle` component constructor Fixes #8336
This commit is contained in:
@ -27,6 +27,8 @@ class PlayToggle extends Button {
|
|||||||
// show or hide replay icon
|
// show or hide replay icon
|
||||||
options.replay = options.replay === undefined || options.replay;
|
options.replay = options.replay === undefined || options.replay;
|
||||||
|
|
||||||
|
this.setIcon('play');
|
||||||
|
|
||||||
this.on(player, 'play', (e) => this.handlePlay(e));
|
this.on(player, 'play', (e) => this.handlePlay(e));
|
||||||
this.on(player, 'pause', (e) => this.handlePause(e));
|
this.on(player, 'pause', (e) => this.handlePause(e));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user