Skip to content

Commit f498b82

Browse files
committed
fix not display localized text of year in month picker
1 parent 9c62e46 commit f498b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueDatePicker/components/shared/YearModePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@keydown.enter="() => toggleYearPicker(false)"
2222
>
2323
<slot v-if="$slots.year" name="year" :year="year" :text="yearDisplayVal" :value="year" />
24-
<template v-if="!$slots.year">{{ year }}</template>
24+
<template v-if="!$slots.year">{{ yearDisplayVal }}</template>
2525
</button>
2626
<ArrowBtn
2727
v-if="showRightIcon(defaultedMultiCalendars, instance)"

0 commit comments

Comments
 (0)