Skip to content

Commit

Permalink
made changes as per the suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunjangid committed Sep 27, 2024
1 parent e3b63df commit 88fcfc7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,14 @@ else:
_el.val(_el.val() + "T" + _val.split("T")[1]);
}
$(document).off("click.hideDatepicker", function (event) {
event.stopPropagation();
});
$(document).off("click.hideDatepicker");
}).on("show", function() {
$(document).on("click.hideDatepicker", function (event) {
if (!$(event.target).closest(".datepicker, .calendar-link, input[type='text']").length) {
_el.datepicker('hide');
}
});
$(document).off("click.hideDatepicker");
});
_el.datepicker('show');
Expand Down

0 comments on commit 88fcfc7

Please sign in to comment.