Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit a22d1b6

Browse files
SelemondevSelemondev
Selemondev
authored and
Selemondev
committed
fix(app): modal TransitionChild component binding error
This pull request is intended to fix the transition binding to the TransitionChild component from @headlessui/vue
1 parent f54ebf0 commit a22d1b6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

packages/nuxt-ui-vue/src/App.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<script setup lang="ts">
2+
import { ref } from 'vue'
3+
4+
const isOpen = ref(false)
25
</script>
36

47
<template>
5-
<div class="grid place-items-center w-full min-h-screen">
6-
<UButtonGroup size="sm" orientation="horizontal">
7-
<UButton icon="ph:music-notes" label="Music" />
8-
<UButton icon="ph:music-notes" label="Music" color="red" />
9-
<UButton icon="ph:music-notes" label="Music" color="red" />
10-
</UButtonGroup>
8+
<div class="grid place-items-center min-h-screen w-full">
9+
<UButton label="Open" @click="isOpen = true" />
10+
<UModal v-model="isOpen" fullscreen>
11+
<!-- Content -->
12+
</UModal>
1113
</div>
1214
</template>

packages/nuxt-ui-vue/src/components/overlays/Modal/UModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default defineComponent({
109109
<template>
110110
<TransitionRoot :appear="appear" :show="isOpen" as="template">
111111
<HDialog :class="wrapperClass" v-bind="attrsOmitted" @close="(e) => !preventClose && close(e)">
112-
<TransitionChild v-if="overlay" as="template" :appear="appear" v-bind="overlayTransitions">
112+
<TransitionChild v-if="overlay" as="template" :appear="appear" :bind="overlayTransitions">
113113
<div :class="[variant.overlayBase, variant.overlayBackground]" />
114114
</TransitionChild>
115115

0 commit comments

Comments
 (0)