aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-18 18:21:10 -0400
committerGitHub <noreply@github.com>2020-10-18 18:21:10 -0400
commita920445883b04bba7289bf99dfb70ddc9d3a3e47 (patch)
tree748386f59c0bb26de65acc09c3fcae2c10ab13c8 /ext
parent988ea8f70af3c93338b041e7148de7b7623100d0 (diff)
Fix focused element of popup menus (#937)
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings/popup-menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/popup-menu.js b/ext/bg/js/settings/popup-menu.js
index f49e50da..f9c7c165 100644
--- a/ext/bg/js/settings/popup-menu.js
+++ b/ext/bg/js/settings/popup-menu.js
@@ -27,7 +27,7 @@ class PopupMenu {
prepare() {
const items = this._menu.querySelectorAll('.popup-menu-item');
this._setPosition(items);
- this._menu.focus();
+ this._container.focus();
this._eventListeners.addEventListener(window, 'resize', this._onWindowResize.bind(this), false);
this._eventListeners.addEventListener(this._container, 'click', this._onMenuContainerClick.bind(this), false);