From 2e0cd481413476c2bd294bc4a37a31fd3b920385 Mon Sep 17 00:00:00 2001 From: Sayam Samal Date: Wed, 9 Oct 2024 13:43:37 +0530 Subject: [PATCH] popovers: Fix initial focus on popover simplebar container. This commit is a follow-up of 43eebbf9c6b6ef8f3da517bed2b2841143e27b1e, and it sets `data-simplebar-tab-index="-1"` on the remaining popovers. This prevents the simplebar container from taking focus while trying to navigate the popovers via the keyboard, thus fixing the bug where the user had to click the down key twice before reaching the first focus-able popover menu option. --- .../popovers/left_sidebar/left_sidebar_all_messages_popover.hbs | 2 +- .../left_sidebar/left_sidebar_condensed_views_popover.hbs | 2 +- .../popovers/left_sidebar/left_sidebar_drafts_popover.hbs | 2 +- .../popovers/left_sidebar/left_sidebar_inbox_popover.hbs | 2 +- .../popovers/left_sidebar/left_sidebar_recent_view_popover.hbs | 2 +- .../left_sidebar/left_sidebar_starred_messages_popover.hbs | 2 +- .../left_sidebar/left_sidebar_stream_setting_popover.hbs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/templates/popovers/left_sidebar/left_sidebar_all_messages_popover.hbs b/web/templates/popovers/left_sidebar/left_sidebar_all_messages_popover.hbs index e4e162a9a2..810b94b24c 100644 --- a/web/templates/popovers/left_sidebar/left_sidebar_all_messages_popover.hbs +++ b/web/templates/popovers/left_sidebar/left_sidebar_all_messages_popover.hbs @@ -1,4 +1,4 @@ -
+