From 89a780c909902bb1f05e458d98d14f95e5270b97 Mon Sep 17 00:00:00 2001 From: ulferts Date: Thu, 19 Dec 2024 21:19:51 +0100 Subject: [PATCH] avoid unnecessary opening when clicking The date picker is already opened on focus --- .../basic-single-date-picker.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts index 658cea065bf1..c167b11f829f 100644 --- a/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts +++ b/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts @@ -161,6 +161,7 @@ export class OpBasicSingleDatePickerComponent implements ControlValueAccessor, O allowInput: true, mode: 'single', showMonths: 1, + clickOpens: false, onReady: (_date:Date[], _datestr:string, instance:flatpickr.Instance) => { instance.calendarContainer.classList.add('op-datepicker-modal--flatpickr-instance'); },