Skip to content

Commit

Permalink
Fixed #94 - Dialog is not modal when v-if used
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Dec 9, 2019
1 parent 05c94bd commit aa4ac46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dialog/Dialog.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<transition name="p-dialog" @enter="onEnter" @leave="onLeave">
<transition name="p-dialog" @enter="onEnter" @leave="onLeave" @appear="onEnter">
<div ref="container" :class="containerClass" v-if="visible">
<div class="p-dialog-titlebar" v-if="showHeader">
<slot name="header">
Expand Down Expand Up @@ -51,7 +51,7 @@ export default {
},
mask: null,
documentKeydownListener: null,
destroyed() {
beforeDestroy() {
if (this.modal) {
this.disableModality();
}
Expand Down

0 comments on commit aa4ac46

Please sign in to comment.