mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix: event should be optional (#51419)
* event should be optional * revert ts
This commit is contained in:
parent
f0c39c6b3f
commit
8eee04b20f
@ -85,7 +85,7 @@ const InternalUploadList: React.ForwardRefRenderFunction<UploadListRef, UploadLi
|
||||
if (!onPreview) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
e?.preventDefault();
|
||||
return onPreview(file);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user