Skip to content
Snippets Groups Projects
Commit 95ad5cca authored by Tae Hoon's avatar Tae Hoon
Browse files

revert changes to render modal into portal

parent d69b8794
No related branches found
No related tags found
No related merge requests found
......@@ -120,10 +120,7 @@
<MobilePostStatusButton />
<UserReportingModal />
<PostStatusModal />
<portal-target
name="modal"
multiple
/>
<portal-target name="modal" />
</div>
</template>
......
<template>
<portal to="modal">
<div
v-show="isOpen"
v-body-scroll-lock="isOpen"
:class="['modal-view', viewClass]"
@click.self="closeModal"
>
<slot />
</div>
</portal>
<div
v-show="isOpen"
v-body-scroll-lock="isOpen"
:class="['modal-view', viewClass]"
@click.self="closeModal"
>
<slot />
</div>
</template>
<script src="./modal.js"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment