Merge pull request #4402 from qburst/4401--fix-scrollbar-break-in-image-preview

fix: Fixes scrollbar break while closing image preview
pull/4409/head
Tuğçe Küçükoğlu 2023-09-07 09:35:23 +03:00 committed by GitHub
commit dec50b0f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ export default {
!this.isUnstyled && DomHandler.addClass(this.mask, 'p-component-overlay-leave');
},
onLeave() {
DomHandler.removeClass(document.body, 'p-overflow-hidden');
this.$emit('hide');
},
onAfterLeave(el) {