Fixed #94 - Dialog is not modal when v-if used
parent
05c94bde8f
commit
aa4ac46411
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<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 ref="container" :class="containerClass" v-if="visible">
|
||||||
<div class="p-dialog-titlebar" v-if="showHeader">
|
<div class="p-dialog-titlebar" v-if="showHeader">
|
||||||
<slot name="header">
|
<slot name="header">
|
||||||
|
@ -51,7 +51,7 @@ export default {
|
||||||
},
|
},
|
||||||
mask: null,
|
mask: null,
|
||||||
documentKeydownListener: null,
|
documentKeydownListener: null,
|
||||||
destroyed() {
|
beforeDestroy() {
|
||||||
if (this.modal) {
|
if (this.modal) {
|
||||||
this.disableModality();
|
this.disableModality();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue