Skip to content

Commit 31800cb

Browse files
authored
fix: a flash of pictures when previewing was turned off ✨ (#5955)
1 parent 6cd099d commit 31800cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-image/src/PreviewGroup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const Group = defineComponent({
150150
);
151151
watchEffect(
152152
() => {
153-
if (!isShowPreview.value && isControlled.value) {
153+
if (isShowPreview.value && isControlled.value) {
154154
setCurrent(currentControlledKey.value);
155155
}
156156
},

0 commit comments

Comments
 (0)