mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
recent_conversation: Delegate profile click handling to body
.
`#recent_topics_table` may not be present in the DOM when this click handler is initialized which can cause this it to not work, delegating it to body ensures it will always work.
This commit is contained in:
@@ -1216,7 +1216,7 @@ export function initialize() {
|
||||
filters = new Set(ls.get(ls_key));
|
||||
}
|
||||
|
||||
$("#recent_topics_table").on("click", ".participant_profile", function (e) {
|
||||
$("body").on("click", "#recent_topics_table .participant_profile", function (e) {
|
||||
const participant_user_id = Number.parseInt($(this).attr("data-user-id"), 10);
|
||||
e.stopPropagation();
|
||||
const user = people.get_by_user_id(participant_user_id);
|
||||
|
Reference in New Issue
Block a user