From dd6160ace15fee9461c64df63226ff8a98f9a5b8 Mon Sep 17 00:00:00 2001 From: Jasenko Karovic Date: Sat, 28 Dec 2024 15:18:54 +0100 Subject: [PATCH] feat: Add `escClose` to `text-input` options (resolves #1038) --- index.d.ts | 1 + src/VueDatePicker/components/DatepickerInput.vue | 13 +++++++++++-- src/VueDatePicker/interfaces.ts | 1 + src/VueDatePicker/utils/defaults.ts | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 043f60e1..ec2ae89d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -199,6 +199,7 @@ export interface VueDatePickerProps { rangeSeparator?: string; selectOnFocus?: boolean; format?: string | string[] | ((value: string) => Date | null); + escClose?: boolean; }; monthNameFormat?: 'long' | 'short'; startDate?: string | Date; diff --git a/src/VueDatePicker/components/DatepickerInput.vue b/src/VueDatePicker/components/DatepickerInput.vue index 08f9f8d9..c010966b 100644 --- a/src/VueDatePicker/components/DatepickerInput.vue +++ b/src/VueDatePicker/components/DatepickerInput.vue @@ -58,11 +58,13 @@ @click="emit('toggle')" /> -