profile_setting: Enable allowInput on flatpickr.

Without this field the datepicker was in readonly mode.
This commit is contained in:
SiddharthVarshney 2020-06-07 09:46:34 +05:30 committed by Tim Abbott
parent 02c670f5a3
commit d09758cec3
2 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -1757,8 +1757,8 @@ input[type=checkbox] {
}
}
&.datepicker {
cursor: pointer;
.datepicker {
cursor: default;
}
.person_picker {