Fixed #94 - Dialog is not modal when v-if used

pull/132/head
cagataycivici 2019-12-09 17:47:18 +03:00
parent 05c94bde8f
commit aa4ac46411
1 changed files with 2 additions and 2 deletions

View File

@ -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">
@ -51,7 +51,7 @@ export default {
},
mask: null,
documentKeydownListener: null,
destroyed() {
beforeDestroy() {
if (this.modal) {
this.disableModality();
}