Skip to content

Commit

Permalink
fix(datepicker): template slots (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpntex authored Jul 12, 2024
1 parent 9f0b03e commit 74f3a5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-radios-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@indielayer/ui": patch
---

fix(datepicker): template slots
3 changes: 1 addition & 2 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ run-name: Pull Request Check - ${{ github.ref_name }}

on:
pull_request:
branches:
- main
branches: ["main","master"]

concurrency:
group: ${{ github.ref_name }}
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/src/components/datepicker/Datepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
:hide-footer="hideFooter"
@keydown.prevent.enter="onEnter"
@keydown.tab="onTab"
>
<template v-for="(_, name) in $slots" #[name]="slotProps = {}">
<slot v-bind="slotProps" :name="name"></slot>
</template>
</x-input>
/>
</template>

<template v-for="(_, name) in $slots" #[name]="slotProps = {}">
<slot v-bind="slotProps" :name="name"></slot>
</template>
</vue-datepicker>
</div>
Expand Down

0 comments on commit 74f3a5d

Please sign in to comment.