From 6ed9c66f5006dd35b5d111343cd34abb6c64f8bb Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Fri, 18 Aug 2023 06:41:37 +0530 Subject: [PATCH] Removed scrollbar for image preview (#4284) --- components/lib/image/Image.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 29836875b..038f261c5 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -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: {