0
0
Fork 0

Remove teleport because we're running V2 not V3. Whoops...

This commit is contained in:
Oliver-Akins 2020-12-13 17:21:38 -07:00
parent 42d0fe483e
commit 7e30bdba31

View file

@ -1,20 +1,18 @@
<template>
<teleport to="body">
<transition name="fade" @after-enter="content = true">
<div
v-if="show"
class="modal-container"
:class="closable ? 'clickable' : ''"
@click.self.stop="handleBackgroundClick"
>
<transition name="burst" @after-leave="$emit('closed')">
<div v-if="content" class="modal unclickable">
<slot />
</div>
</transition>
</div>
</transition>
</teleport>
<transition name="fade" @after-enter="content = true">
<div
v-if="show"
class="modal-container"
:class="closable ? 'clickable' : ''"
@click.self.stop="handleBackgroundClick"
>
<transition name="burst" @after-leave="$emit('closed')">
<div v-if="content" class="modal unclickable">
<slot />
</div>
</transition>
</div>
</transition>
</template>
<script>