From c0d69bf74de59b3b1222988f6b4258d6b96d0f23 Mon Sep 17 00:00:00 2001 From: Ola Alsaker Date: Tue, 6 Aug 2024 00:15:25 +0200 Subject: [PATCH] fix: bugs with tab-handling in datepicker --- src/VueDatePicker/components/DatepickerInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VueDatePicker/components/DatepickerInput.vue b/src/VueDatePicker/components/DatepickerInput.vue index 84e095fb..c933dfd6 100644 --- a/src/VueDatePicker/components/DatepickerInput.vue +++ b/src/VueDatePicker/components/DatepickerInput.vue @@ -245,10 +245,10 @@ if (clearBtnRef.value && fromInput && !clearBtnFocused.value) { ev.preventDefault(); clearBtnFocused.value = true; - return clearBtnRef.value?.focus(); + clearBtnRef.value?.focus(); } if (defaultedTextInput.value.enabled && defaultedTextInput.value.tabSubmit) { - parseInput((ev.target as HTMLInputElement).value); + parseInput((inputRef.value as HTMLInputElement).value); } if (defaultedTextInput.value.tabSubmit && isValidDate(parsedDate.value) && props.inputValue !== '') {