lesson 135: move the teleport tag to the BaseDialog

This commit is contained in:
Andreas Zweili 2021-02-08 20:22:22 +01:00
parent cf78b35666
commit 8c310f17c2
2 changed files with 29 additions and 29 deletions

View File

@ -1,4 +1,5 @@
<template>
<teleport to="body">
<div @click="$emit('close')"></div>
<dialog open>
<header>
@ -13,6 +14,7 @@
</slot></menu
>
</dialog>
</teleport>
</template>
<script>
export default {

View File

@ -23,7 +23,6 @@
</div>
</form>
</base-card>
<teleport to="body">
<base-dialog
v-if="inputIsInvalid"
title="Input may not be empty"
@ -37,7 +36,6 @@
<base-button @click="resetErrorDialog">Ok</base-button>
</template>
</base-dialog>
</teleport>
</template>
<script>