Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Open the date picker when its label has been clicked.
josephe237faabf5c0
diff --git a/web/src/custom_profile_fields_ui.ts b/web/src/custom_profile_fields_ui.tsindex 28c0b634b39..e5afc63d22e 100644--- a/web/src/custom_profile_fields_ui.ts+++ b/web/src/custom_profile_fields_ui.ts@@ -170,6 +170,13 @@ export function initialize_custom_date_type_fields(element_id: string): void {static: true,});+ // Enable the label associated to this field to open the datepicker when clicked.+ $(element_id)+ .find(".custom_user_field label.settings-field-label")+ .on("click", function () {+ $(this).closest(".custom_user_field").find("input.datepicker").trigger("click");+ });+$(element_id).find<HTMLInputElement>(".custom_user_field input.datepicker").on("mouseenter", function () {