Skip to content

Commit

Permalink
removing the event handler after hide
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunjangid committed Sep 27, 2024
1 parent 88fcfc7 commit afdf053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ else:
$(document).on("click.hideDatepicker", function (event) {
if (!$(event.target).closest(".datepicker, .calendar-link, input[type='text']").length) {
_el.datepicker('hide');
$(document).off("click.hideDatepicker");
}
});
$(document).off("click.hideDatepicker");
});
_el.datepicker('show');
Expand Down

0 comments on commit afdf053

Please sign in to comment.