Skip to content

Commit

Permalink
fix: a flash of pictures when previewing was turned off ✨ (#5955)
Browse files Browse the repository at this point in the history
  • Loading branch information
24min authored Sep 13, 2022
1 parent 6cd099d commit 31800cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-image/src/PreviewGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Group = defineComponent({
);
watchEffect(
() => {
if (!isShowPreview.value && isControlled.value) {
if (isShowPreview.value && isControlled.value) {
setCurrent(currentControlledKey.value);
}
},
Expand Down

0 comments on commit 31800cb

Please sign in to comment.