Fix hiding the image modal
This commit is contained in:
parent
d4165ec2d0
commit
6cd5821e5f
2 changed files with 5 additions and 3 deletions
|
|
@ -9,7 +9,7 @@
|
|||
:class="{ 'show d-block': show }"
|
||||
tabindex="-1"
|
||||
v-show="show"
|
||||
@click.self="show = false"
|
||||
@click.self="emit('close')"
|
||||
>
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="btn-close"
|
||||
@click="show = false"
|
||||
@click="emit('close')"
|
||||
></button>
|
||||
</div>
|
||||
<div class="modal-body text-center">
|
||||
|
|
@ -91,12 +91,13 @@
|
|||
<div
|
||||
class="modal-backdrop fade show"
|
||||
v-show="show"
|
||||
@click="show = false"
|
||||
@click="emit('close')"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
interface Emits {
|
||||
(e: "close"): void;
|
||||
(e: "imageNext"): void;
|
||||
(e: "imagePrevious"): void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
</template>
|
||||
</ThreeColumn>
|
||||
<PhotoViewerModal
|
||||
@close="showPhotoModal = false"
|
||||
@imageNext="imageNext()"
|
||||
@imagePrevious="imagePrevious()"
|
||||
:images="currentImages"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue