mirror of https://github.com/zulip/zulip.git
popovers: Fix toggling of user popover.
Fix the logic for closing user popover on clicking the chevron again in the buddy list. Fixes: #11690.
This commit is contained in:
parent
c6e60ebf0e
commit
6725d921ac
|
@ -824,7 +824,7 @@ exports.register_click_handlers = function () {
|
|||
var target = $(this).closest('li');
|
||||
var user_id = target.find('a').attr('data-user-id');
|
||||
|
||||
if (current_user_sidebar_user_id === user_id) {
|
||||
if (String(current_user_sidebar_user_id) === user_id) {
|
||||
// If the popover is already shown, clicking again should toggle it.
|
||||
popovers.hide_all();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue