From 34aba6d42977da88ee5f27937d79479d3957b718 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 7 May 2024 15:45:39 +0000 Subject: [PATCH] Bug 36774: (QA Follow-up): Use flatpickr clear Im not sure why, but with the way it was before, there was a bug in my test plan. If you cleared using the TEST link, and then input some date and clear with the 'x', a JS error would occurr. --- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index c343e5e5df..83a7432f7a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -75,7 +75,7 @@ .addClass("clear_date") .on("click", function(e){ e.preventDefault(); - instance.clear(); + instance.input.flatpickr().clear(); }) .addClass("fa fa-fw fa-times") .attr("aria-hidden", true) -- 2.39.2