mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
reactions: Add back missing e.stopPropagation().
In 42f20e81be I fixed an edge case but
also accidentally made clicking on reactions open the compose box.
This commit adds back the e.stopPropagation(); and explicitly hides the
emoji picker popover, to address the inconsistency fixed in the previous
commit.
This commit is contained in:
@@ -170,7 +170,9 @@ exports.initialize = function () {
|
||||
message_flags.toggle_starred_and_update_server(message);
|
||||
});
|
||||
|
||||
$("#main_div").on("click", ".message_reaction", function () {
|
||||
$("#main_div").on("click", ".message_reaction", function (e) {
|
||||
e.stopPropagation();
|
||||
emoji_picker.hide_emoji_popover();
|
||||
const local_id = $(this).attr('data-reaction-id');
|
||||
const message_id = rows.get_message_id(this);
|
||||
reactions.process_reaction_click(message_id, local_id);
|
||||
|
||||
Reference in New Issue
Block a user