From da11141eae0fbc400a9176caad004000e44fa610 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 17 Aug 2021 07:34:41 +0000 Subject: [PATCH] click_handlers: Don't select message on clicking message_controls. Note that opening the main message actions menu still selects the message due to explicit code in toggle_actions_popover. --- static/js/click_handlers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index ffe8036dff..0768fc0f4b 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -137,6 +137,11 @@ export function initialize() { return true; } + // Don't select message on clicking message control buttons. + if (target.parents(".message_controls").length > 0) { + return true; + } + return false; }