Replies: 1 comment
-
<CalendarGridBody class="grid">
<CalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class="mt-2 w-full">
<CalendarCell
v-for="weekDate in weekDates"
:key="weekDate.toString()"
:date="weekDate"
>
<PopoverClose as-child>
<CalendarCellTrigger
:day="weekDate"
:month="month.value"
/>
</PopoverClose>
</CalendarCell>
</CalendarGridRow>
</CalendarGridBody> https://stackblitz.com/edit/apelnx?file=src%2Fcomponents%2Fui%2Fcalendar%2FCalendarCellTrigger.vue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So far I have been searching how to do this extremely basic feature... I see this long discussion in react shad-cn of all these insane hacks simply to close a date picker on select. Im hoping its trivial in shadcn-vue/radix-vue 🤔
Beta Was this translation helpful? Give feedback.
All reactions