Use querySelector on container for showMenuPanel

This commit is contained in:
Emiel Beinema 2019-04-15 12:16:48 +02:00
parent d9b7928ce6
commit 2cf44c236d

2
src/js/controls.js vendored
View File

@ -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)) {