Fixed #1697 - Flicker on non-modal Dialogs

pull/1711/head
Cagatay Civici 2021-10-25 14:59:56 +03:00
parent 380cc59ccf
commit 78a91c718a
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ export default {
this.bindGlobalListeners();
},
onBeforeLeave() {
DomHandler.addClass(this.mask, 'p-component-overlay-leave');
if (this.modal) {
DomHandler.addClass(this.mask, 'p-component-overlay-leave');
}
},
onLeave() {