mirror of https://github.com/zulip/zulip.git
user_profile: Remove redundant call to popovers.hide_all.
`show_user_profile` is only triggered by clicks. Even `enter` keypress is triggers a click via `popover_items_handle_keyboard_with_overrides`.
This commit is contained in:
parent
6cfb7239c8
commit
f85f904fc1
|
@ -27,7 +27,6 @@ import * as loading from "./loading";
|
||||||
import * as overlays from "./overlays";
|
import * as overlays from "./overlays";
|
||||||
import {page_params} from "./page_params";
|
import {page_params} from "./page_params";
|
||||||
import * as people from "./people";
|
import * as people from "./people";
|
||||||
import * as popovers from "./popovers";
|
|
||||||
import * as settings_config from "./settings_config";
|
import * as settings_config from "./settings_config";
|
||||||
import * as settings_data from "./settings_data";
|
import * as settings_data from "./settings_data";
|
||||||
import * as settings_profile_fields from "./settings_profile_fields";
|
import * as settings_profile_fields from "./settings_profile_fields";
|
||||||
|
@ -317,8 +316,6 @@ function initialize_user_type_fields(user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function show_user_profile(user, default_tab_key = "profile-tab") {
|
export function show_user_profile(user, default_tab_key = "profile-tab") {
|
||||||
popovers.hide_all();
|
|
||||||
|
|
||||||
const field_types = page_params.custom_profile_field_types;
|
const field_types = page_params.custom_profile_field_types;
|
||||||
const profile_data = page_params.custom_profile_fields
|
const profile_data = page_params.custom_profile_fields
|
||||||
.map((f) => get_custom_profile_field_data(user, f, field_types))
|
.map((f) => get_custom_profile_field_data(user, f, field_types))
|
||||||
|
|
Loading…
Reference in New Issue