Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Focus on the input when its label has been clicked.
joseph9aaa7719fa69
diff --git a/web/src/custom_profile_fields_ui.ts b/web/src/custom_profile_fields_ui.tsindex e5afc63d22e..3526511aea5 100644--- a/web/src/custom_profile_fields_ui.ts+++ b/web/src/custom_profile_fields_ui.ts@@ -154,6 +154,16 @@ export function initialize_custom_user_type_fields(}}+ // Enable the label associated to this field to focus on the input when clicked.+ $(element_id)+ .find(".custom_user_field label.settings-field-label")+ .on("click", function () {+ const $input_element = $(this)+ .closest(".custom_user_field")+ .find(".person_picker.pill-container .input");+ $input_element.trigger("focus");+ });+return user_pills;}