Merge pull request #2435 from tugcekucukoglu/toast
Fixed #2434 - Toast | z-index shouldn't removed when other toasts are…pull/2438/head
commit
6303b5c73a
|
@ -11,7 +11,7 @@
|
||||||
<script>
|
<script>
|
||||||
import ToastEventBus from 'primevue/toasteventbus';
|
import ToastEventBus from 'primevue/toasteventbus';
|
||||||
import ToastMessage from './ToastMessage.vue';
|
import ToastMessage from './ToastMessage.vue';
|
||||||
import {ZIndexUtils,UniqueComponentId} from 'primevue/utils';
|
import {ZIndexUtils,UniqueComponentId,ObjectUtils} from 'primevue/utils';
|
||||||
|
|
||||||
var messageIdx = 0;
|
var messageIdx = 0;
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLeave() {
|
onLeave() {
|
||||||
if (this.$refs.container && this.autoZIndex) {
|
if (this.$refs.container && this.autoZIndex && ObjectUtils.isEmpty(this.messages)) {
|
||||||
ZIndexUtils.clear(this.$refs.container);
|
ZIndexUtils.clear(this.$refs.container);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue