From 38ea4490318b9007fd74353f8e2b12f57b551998 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. Signed-off-by: David Nind Signed-off-by: Jonathan Druart --- 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 c343e5e5dff..83a7432f7a5 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.34.1