From 07e7fcf512019eff2b9854d8a7c4fa9aa92325fb Mon Sep 17 00:00:00 2001 From: navedqb Date: Mon, 18 Dec 2023 11:40:04 +0530 Subject: [PATCH] fixes image preview close on disabled zoom button click --- components/lib/image/style/ImageStyle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/lib/image/style/ImageStyle.js b/components/lib/image/style/ImageStyle.js index 93259be8f..a6e9d82fd 100644 --- a/components/lib/image/style/ImageStyle.js +++ b/components/lib/image/style/ImageStyle.js @@ -50,6 +50,10 @@ const css = ` justify-content: center; align-items: center; } + + .p-image-action.p-disabled { + pointer-events: auto; + } .p-image-preview { transition: transform 0.15s;