From d597d23d64775238e6480fb07856b738cffc37aa Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 8 Jan 2024 12:59:32 -0500 Subject: [PATCH] Fix #5704: Image error on mask click (#5705) --- components/lib/image/Image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/image/Image.js b/components/lib/image/Image.js index 0400e6ba1d..811a44f314 100644 --- a/components/lib/image/Image.js +++ b/components/lib/image/Image.js @@ -81,8 +81,8 @@ export const Image = React.memo( if (!previewClick.current) { setPreviewVisibleState(false); - rotate = 0; - scale = 0; + setRotateState(0); + setScaleState(0); } previewClick.current = false;