mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
custom-profile-fields: Fix class name in datepicker input.
We previously added "settings_text_input" class to the datepickr input in "Manage user" form as well, while other inputs have "modal_text_input" class. This commit fixes that.
This commit is contained in:
@@ -277,12 +277,17 @@ export function initialize_custom_date_type_fields(
|
||||
}
|
||||
}
|
||||
|
||||
let common_class_name = "modal_text_input";
|
||||
if (for_profile_settings_panel) {
|
||||
common_class_name = "settings_text_input";
|
||||
}
|
||||
|
||||
flatpickr($date_picker_elements, {
|
||||
altInput: true,
|
||||
// We would need to handle the altInput separately
|
||||
// than ".custom_user_field_value" elements to handle
|
||||
// invalid values typed in the input.
|
||||
altInputClass: "date-field-alt-input settings_text_input",
|
||||
altInputClass: "date-field-alt-input " + common_class_name,
|
||||
altFormat: "F j, Y",
|
||||
allowInput: true,
|
||||
static: true,
|
||||
|
||||
Reference in New Issue
Block a user