Skip to content

Commit 0816093

Browse files
committed
66
1 parent 5f9dea2 commit 0816093

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1414
</noscript>
1515
<div id="app"></div>
16+
<div id="modal"></div>
1617
<!-- built files will be auto injected -->
1718
</body>
1819
</html>

src/components/TodoList.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
</div>
3232
</div>
3333
</div>
34-
<Modal
35-
v-if="showModal"
36-
@close="closeModal"
37-
@delete="deleteTodo"
38-
/>
34+
<teleport to="#modal">
35+
<Modal
36+
v-if="showModal"
37+
@close="closeModal"
38+
@delete="deleteTodo"
39+
/>
40+
</teleport>
3941
</template>
4042

4143
<script>

src/pages/todos/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div>
2+
<div style="opacity: 0.5">
33
<div class="d-flex justify-content-between mb-3">
44
<h2>To-Do List</h2>
55
<button

0 commit comments

Comments
 (0)