From a920445883b04bba7289bf99dfb70ddc9d3a3e47 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 18 Oct 2020 18:21:10 -0400 Subject: [PATCH] Fix focused element of popup menus (#937) --- ext/bg/js/settings/popup-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);