Skip to content

Commit 5767ffd

Browse files
committed
fix: Prevent calendar cell focus if date is not in the current month and hide-offset-dates is enabled (fixes #978)
1 parent 357d4bb commit 5767ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueDatePicker/components/DatePicker/DpCalendar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"
4444
:aria-disabled="dayVal.classData.dp__cell_disabled || undefined"
4545
:aria-label="defaultedAriaLabels?.day?.(dayVal)"
46-
tabindex="0"
46+
:tabindex="!dayVal.current && hideOffsetDates ? undefined : 0"
4747
:data-test="dayVal.value"
4848
@click.prevent="onDateSelect($event, dayVal)"
4949
@touchend="onDateSelect($event, dayVal, false)"

0 commit comments

Comments
 (0)