aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorEmiel Beinema <emiel.beinema@gmail.com>2019-04-15 12:16:48 +0200
committerEmiel Beinema <emiel.beinema@gmail.com>2019-04-15 12:16:48 +0200
commit2cf44c236d586ca07f03744a3df8ffeff425b8f7 (patch)
treea4f3368de1afaa4cf5bd97872ea21c0aadb4fc51 /src/js
parentd9b7928ce63f57f4b6675d497c05de8835531e06 (diff)
downloadplyr-2cf44c236d586ca07f03744a3df8ffeff425b8f7.tar.lz
plyr-2cf44c236d586ca07f03744a3df8ffeff425b8f7.tar.xz
plyr-2cf44c236d586ca07f03744a3df8ffeff425b8f7.zip
Use querySelector on container for showMenuPanel
Diffstat (limited to 'src/js')
-rw-r--r--src/js/controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 78d3144f..104f5c95 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -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)) {