diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/assets/player/videojs-components/settings-menu-item.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-item.ts b/client/src/assets/player/videojs-components/settings-menu-item.ts index b738300ae..85172a18c 100644 --- a/client/src/assets/player/videojs-components/settings-menu-item.ts +++ b/client/src/assets/player/videojs-components/settings-menu-item.ts | |||
@@ -75,7 +75,6 @@ class SettingsMenuItem extends MenuItem { | |||
75 | this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_) | 75 | this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_) |
76 | this.update() | 76 | this.update() |
77 | this.bindClickEvents() | 77 | this.bindClickEvents() |
78 | |||
79 | }, 0) | 78 | }, 0) |
80 | }) | 79 | }) |
81 | } | 80 | } |
@@ -107,6 +106,10 @@ class SettingsMenuItem extends MenuItem { | |||
107 | // To update the sub menu value on click, setTimeout is needed because | 106 | // To update the sub menu value on click, setTimeout is needed because |
108 | // updating the value is not instant | 107 | // updating the value is not instant |
109 | setTimeout(() => this.update(event), 0) | 108 | setTimeout(() => this.update(event), 0) |
109 | |||
110 | // Seems like videojs adds a vjs-hidden class on the caption menu after a click | ||
111 | // We don't need it | ||
112 | this.subMenu.menu.removeClass('vjs-hidden') | ||
110 | } | 113 | } |
111 | 114 | ||
112 | /** | 115 | /** |