Removed scrollbar for image preview (#4284)

pull/4295/head
navedqb 2023-08-18 06:41:37 +05:30 committed by GitHub
parent 6f286c478d
commit 6ed9c66f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ export default {
},
onImageClick() {
if (this.preview) {
DomHandler.addClass(document.body, 'p-overflow-hidden');
this.maskVisible = true;
setTimeout(() => {
this.previewVisible = true;
@ -179,6 +180,7 @@ export default {
this.previewVisible = false;
this.rotate = 0;
this.scale = 1;
DomHandler.removeClass(document.body, 'p-overflow-hidden');
}
},
computed: {