mirror of https://github.com/zulip/zulip.git
click_handlers: Allow messages being edited/viewed to be clicked.
If a user is editing a message or viewing the message source, they'll notice that clicking on the messsage doesn't move the blue box to it while the keyboard works just fine. We want to allow the message to be selected while not triggering the reply function.
This commit is contained in:
parent
e2c4033d75
commit
a840cd88ab
|
@ -177,13 +177,13 @@ export function initialize() {
|
|||
const $row = $(this).closest(".message_row");
|
||||
const id = rows.id($row);
|
||||
|
||||
message_lists.current.select_id(id);
|
||||
|
||||
if (message_edit.is_editing(id)) {
|
||||
// Clicks on a message being edited shouldn't trigger a reply.
|
||||
return;
|
||||
}
|
||||
|
||||
message_lists.current.select_id(id);
|
||||
|
||||
if (page_params.is_spectator) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue