From 2d4d4b86eb23f056bcbfadc10c8ec1ca20d2f134 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 3 Oct 2023 05:04:57 +0000 Subject: [PATCH] left_sidebar: Fix click handler selector for all private messages. The previous logic did not correctly handle clicks that were in the tiny spaces inside the link tag but outside the icon element. Fixes #25647. --- web/src/click_handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/click_handlers.js b/web/src/click_handlers.js index 6c0e178b6d..3dbdd9ff36 100644 --- a/web/src/click_handlers.js +++ b/web/src/click_handlers.js @@ -719,7 +719,7 @@ export function initialize() { "click", ".private_messages_container.zoom-out #private_messages_section_header", (e) => { - if (e.target.classList.value === "fa fa-align-right") { + if ($(e.target).closest("#show_all_private_messages").length === 1) { // Let the browser handle the "all direct messages" widget. return; }