Use querySelector on container for showMenuPanel
This commit is contained in:
parent
d9b7928ce6
commit
2cf44c236d
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -1191,7 +1191,7 @@ const controls = {
|
||||
|
||||
// Show a panel in the menu
|
||||
showMenuPanel(type = '', tabFocus = false) {
|
||||
const target = document.getElementById(`plyr-settings-${this.id}-${type}`);
|
||||
const target = this.elements.container.querySelector(`#plyr-settings-${this.id}-${type}`);
|
||||
|
||||
// Nothing to show, bail
|
||||
if (!is.element(target)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user