Skip to content

Commit fce5ad7

Browse files
authored
Merge pull request #962 from OlaAlsaker/oa/fix-tabhandle-bugs
fix: bugs with tab-handling in `text-input` mode
2 parents f64ff00 + c0d69bf commit fce5ad7

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)