Skip to content

Commit

Permalink
fix(app): fixed modal attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Aug 11, 2021
1 parent 176b41e commit de61226
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/src/components/core/modal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<teleport to="body">
<transition-group name="modal">
<div class="modal" layout="row center-center" v-if="isShowing">
<div class="modal" layout="row center-center" v-bind="$attrs" v-if="isShowing">
<div class="modal__content" self="size-small">
<div class="modal__header" v-if="$slots.header">
<slot name="header" v-bind="{ open, close }"></slot>
Expand All @@ -18,9 +18,15 @@
</teleport>
</template>

<script lang="ts">
export default {
inheritAttrs: false
};
</script>

<script lang="ts" setup>
import {
ref
ref,
} from 'vue';
const isShowing = ref(false);
Expand Down

0 comments on commit de61226

Please sign in to comment.