Fix player captions menu

pull/2207/head
Chocobozzz 2019-10-28 09:37:33 +01:00
parent f003ef1b54
commit 42aac9fcfc
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,6 @@ class SettingsMenuItem extends MenuItem {
this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_)
this.update()
this.bindClickEvents()
}, 0)
})
}
@ -107,6 +106,10 @@ class SettingsMenuItem extends MenuItem {
// To update the sub menu value on click, setTimeout is needed because
// updating the value is not instant
setTimeout(() => this.update(event), 0)
// Seems like videojs adds a vjs-hidden class on the caption menu after a click
// We don't need it
this.subMenu.menu.removeClass('vjs-hidden')
}
/**