Skip to content

Commit 8524682

Browse files
committed
fix: Fix imports in form component and a SSR problem in button component
1 parent 59a3a60 commit 8524682

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/runtime/components/ListmonkButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const slots = useSlots()
1111
<button
1212
:type="type || 'submit'"
1313
>
14-
<template v-if="slots.default">
14+
<template v-if="slots?.default">
1515
<slot />
1616
</template>
1717

src/runtime/components/ListmonkForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { ref, provide } from 'vue'
3+
24
const emit = defineEmits(['subscribed'])
35
46
const email = ref('')

0 commit comments

Comments
 (0)