From 1cfb03c3cb3ad179dbe7975f502db6deda474400 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 20 May 2025 07:44:11 +0200 Subject: [PATCH] fix: update date management and input event handling in VnInputDate component --- src/components/common/VnInputDate.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 0507fddfb..b49fc0158 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -51,6 +51,7 @@ const validateAndCleanInput = (value) => { const manageDate = (date) => { inputValue.value = date.split('/').reverse().join('/'); + formatDate(); isPopupOpen.value = false; }; @@ -170,7 +171,7 @@ const handleEnter = (event) => { :input-style="{ color: textColor }" @click="isPopupOpen = !isPopupOpen" @keydown="isPopupOpen = false" - @blur="formatDate" + @focusout="formatDate" @keydown.enter.prevent="handleEnter" hide-bottom-space :data-cy="($attrs['data-cy'] ?? $attrs.label) + '_inputDate'"