mirror of https://github.com/zulip/zulip.git
profile_setting: Enable allowInput on flatpickr.
Without this field the datepicker was in readonly mode.
This commit is contained in:
parent
02c670f5a3
commit
d09758cec3
|
@ -176,7 +176,9 @@ exports.append_custom_profile_fields = function (element_id, user_id) {
|
|||
exports.initialize_custom_date_type_fields = function (element_id) {
|
||||
$(element_id).find(".custom_user_field .datepicker").flatpickr({
|
||||
altInput: true,
|
||||
altFormat: "F j, Y"});
|
||||
altFormat: "F j, Y",
|
||||
allowInput: true,
|
||||
});
|
||||
|
||||
$(element_id).find(".custom_user_field .datepicker").on("mouseenter", function () {
|
||||
if ($(this).val().length <= 0) {
|
||||
|
|
|
@ -1757,8 +1757,8 @@ input[type=checkbox] {
|
|||
}
|
||||
}
|
||||
|
||||
&.datepicker {
|
||||
cursor: pointer;
|
||||
.datepicker {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.person_picker {
|
||||
|
|
Loading…
Reference in New Issue