Skip to content

Commit c0d69bf

Browse files
committed
fix: bugs with tab-handling in datepicker
1 parent f64ff00 commit c0d69bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VueDatePicker/components/DatepickerInput.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@
245245
if (clearBtnRef.value && fromInput && !clearBtnFocused.value) {
246246
ev.preventDefault();
247247
clearBtnFocused.value = true;
248-
return clearBtnRef.value?.focus();
248+
clearBtnRef.value?.focus();
249249
}
250250
if (defaultedTextInput.value.enabled && defaultedTextInput.value.tabSubmit) {
251-
parseInput((ev.target as HTMLInputElement).value);
251+
parseInput((inputRef.value as HTMLInputElement).value);
252252
}
253253
254254
if (defaultedTextInput.value.tabSubmit && isValidDate(parsedDate.value) && props.inputValue !== '') {

0 commit comments

Comments
 (0)