From b4b31c0c92227c697d0bb5550773d51d0f3082ca Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 23 Sep 2024 15:21:07 +0200 Subject: [PATCH] fix: enable autofocus --- src/components/common/VnInputDate.vue | 3 +++ src/components/common/VnInputTime.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index fd8993d6f..3d5afaf80 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -20,6 +20,7 @@ const { validations } = useValidator(); const { t } = useI18n(); const requiredFieldRule = (val) => validations().required($attrs.required, val); +const vnInputDateRef = ref(null); const dateFormat = 'DD/MM/YYYY'; const isPopupOpen = ref(); @@ -91,6 +92,7 @@ const styleAttrs = computed(() => {