From b95d34a2660696117c5882bef87aa9f797cbe0c6 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Wed, 6 Sep 2023 21:02:44 +0530 Subject: [PATCH] Fix scrollbar break while closing image preview --- components/lib/image/Image.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 038f261c5..50816b8a9 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -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) {