Skip to content

Commit

Permalink
fix: onAfterClose init flip value (#6913)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovsu authored Aug 30, 2023
1 parent 9855e43 commit f7cc27b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/vc-image/src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ const Preview = defineComponent({
const onAfterClose = () => {
scale.value = 1;
rotate.value = 0;
flip.x = 1;
flip.y = 1;
setPosition(initialPosition);
emit('afterClose');
};
Expand Down

0 comments on commit f7cc27b

Please sign in to comment.