Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Use e.currentTarget for .view_user_profile event listener.
Dinesh63d71ecb0ca1
diff --git a/static/js/popovers.js b/static/js/popovers.jsindex 827c6b026a2..e9295c0e005 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -974,7 +974,7 @@ export function register_click_handlers() {});$("body").on("click", ".view_user_profile", (e) => {- const user_id = Number.parseInt($(e.target).attr("data-user-id"), 10);+ const user_id = Number.parseInt($(e.currentTarget).attr("data-user-id"), 10);const user = people.get_by_user_id(user_id);show_user_info_popover(e.target, user);e.stopPropagation();