Skip to content

Commit

Permalink
fix: value prop undefined on month/year slot (fixes #544)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Aug 25, 2023
1 parent 3ec9ad6 commit 8c1e01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VueDatePicker/components/DatePicker/DpHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@keydown.enter.prevent="type.toggle"
@keydown.space.prevent="type.toggle"
>
<slot v-if="$slots[type.type]" :name="type.type" v-bind="{ text: type.text }" />
<slot v-if="$slots[type.type]" :name="type.type" :text="type.text" :value="props[type.type]" />
<template v-if="!$slots[type.type]">{{ type.text }}</template>
</button>
<transition :name="transitionName(type.showSelectionGrid)" :css="showTransition">
Expand Down

0 comments on commit 8c1e01f

Please sign in to comment.