revert changes to render modal into portal
This commit is contained in:
parent
d69b8794b0
commit
95ad5ccaf1
@ -120,10 +120,7 @@
|
||||
<MobilePostStatusButton />
|
||||
<UserReportingModal />
|
||||
<PostStatusModal />
|
||||
<portal-target
|
||||
name="modal"
|
||||
multiple
|
||||
/>
|
||||
<portal-target name="modal" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,14 +1,12 @@
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user