From 31800cb99c60d2017218ca4ca05ce7a8d43c210a Mon Sep 17 00:00:00 2001 From: 24min Date: Tue, 13 Sep 2022 19:44:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20a=20flash=20of=20pictures=20when=20previ?= =?UTF-8?q?ewing=20was=20turned=20off=20=E2=9C=A8=20(#5955)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/vc-image/src/PreviewGroup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-image/src/PreviewGroup.tsx b/components/vc-image/src/PreviewGroup.tsx index 4047257ff3..6674990f28 100644 --- a/components/vc-image/src/PreviewGroup.tsx +++ b/components/vc-image/src/PreviewGroup.tsx @@ -150,7 +150,7 @@ const Group = defineComponent({ ); watchEffect( () => { - if (!isShowPreview.value && isControlled.value) { + if (isShowPreview.value && isControlled.value) { setCurrent(currentControlledKey.value); } },