Skip to content

Commit

Permalink
Fix Modals
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Sep 13, 2024
1 parent a02da66 commit 8bf7daa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/utils/ModalDialog.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="modal fade" :class="{ show: show }" @click="$emit('close')">
<div class="modal fade" :class="{ show: show }">
<div class="modal-dialog modal-xl">
<div v-if="show" class="modal-content">
<div class="modal-header">
Expand All @@ -17,7 +17,11 @@
</div>
</div>
</div>
<div v-show="show" class="modal-backdrop fade show"></div>
<div
v-show="show"
class="modal-backdrop fade show"
@click="$emit('close')"
></div>
</template>

<script setup lang="ts">
Expand All @@ -32,6 +36,8 @@ defineProps<{

<style scoped lang="scss">
div.modal {
pointer-events: none;
&.show {
display: flex;
align-items: stretch;
Expand All @@ -44,6 +50,7 @@ div.modal {
justify-content: stretch;
flex: 1 1 100%;
pointer-events: auto;
}
.modal-body {
Expand Down

0 comments on commit 8bf7daa

Please sign in to comment.