From 418570de29e81b642b11dd76d6e74292a82c2e7d Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Thu, 25 Jul 2024 15:17:22 +0200 Subject: [PATCH 1/2] IBX-8527: [Hide later] Error in console when typing the time --- src/bundle/Resources/public/js/scripts/core/date.time.picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/core/date.time.picker.js b/src/bundle/Resources/public/js/scripts/core/date.time.picker.js index 6bb2b08a70..82efa1a6f3 100644 --- a/src/bundle/Resources/public/js/scripts/core/date.time.picker.js +++ b/src/bundle/Resources/public/js/scripts/core/date.time.picker.js @@ -91,7 +91,7 @@ class DateTimePicker { flatpickrDate.setHours(value); } - if (this.flatpickrConfig.minDate.getTime() > flatpickrDate.getTime()) { + if (this.flatpickrInstance.config.minDate.getTime() > flatpickrDate.getTime()) { return; } From e965984b0edcf353912020d6784e379f4b896058 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Wed, 31 Jul 2024 14:06:47 +0200 Subject: [PATCH 2/2] After QA --- src/bundle/Resources/public/js/scripts/core/date.time.picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/core/date.time.picker.js b/src/bundle/Resources/public/js/scripts/core/date.time.picker.js index 82efa1a6f3..c409fd2eb5 100644 --- a/src/bundle/Resources/public/js/scripts/core/date.time.picker.js +++ b/src/bundle/Resources/public/js/scripts/core/date.time.picker.js @@ -91,7 +91,7 @@ class DateTimePicker { flatpickrDate.setHours(value); } - if (this.flatpickrInstance.config.minDate.getTime() > flatpickrDate.getTime()) { + if (this.flatpickrInstance.config.minDate?.getTime() > flatpickrDate.getTime()) { return; }