Skip to content

Commit

Permalink
fix(upload): fix upload reSelect not invoke model (#1698)
Browse files Browse the repository at this point in the history
Co-authored-by: zhujiahong <zhujiahong@growingio.com>
  • Loading branch information
zhuzilv and zhujiahong authored Dec 20, 2021
1 parent ac2938f commit 292f45a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/upload/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export const PreviewForNotImage: React.FC<IPreviewProps> = ({ file, onReSelect,

const message = file.status === 'success' ? `${uploadSuccess}!` : file.errorMessage;

const handleSelect = (e: React.MouseEvent) => {
e.stopPropagation();
const handleSelect = () => {
onReSelect?.(file);
onRemove?.();
};
Expand Down

1 comment on commit 292f45a

@vercel
Copy link

@vercel vercel bot commented on 292f45a Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.