Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_card_popover: Focus on menu options when opened with keyboard.

Sayam Samalf124ef931dd0
diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.js
index 0cea1954d65..730ca43d99a 100644
--- a/web/src/user_card_popover.js
+++ b/web/src/user_card_popover.js
@@ -480,7 +480,9 @@ function get_user_card_popover_for_message_items() {
return undefined;
}
- return $("li:not(.divider):visible a:not(.hide_copy_icon)", $popover);
+ // Return only the popover menu options that are visible, and not the
+ // copy buttons or the link items in the custom profile fields.
+ return $(".link-item .popover-menu-link", $popover).filter(":visible");
}
// Functions related to the user card popover in the user sidebar.