From c99e9b00bd4cf51df94796982a16eca078a85ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E5=86=BB=E6=A9=99?= Date: Mon, 16 Oct 2023 09:48:13 +0800 Subject: [PATCH] fix: chrome 117 onCancel event (#6991) --- components/vc-upload/AjaxUploader.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/vc-upload/AjaxUploader.tsx b/components/vc-upload/AjaxUploader.tsx index 72b1227fd..f58470937 100644 --- a/components/vc-upload/AjaxUploader.tsx +++ b/components/vc-upload/AjaxUploader.tsx @@ -302,6 +302,7 @@ export default defineComponent({ type="file" ref={fileInput} onClick={e => e.stopPropagation()} // https://github.com/ant-design/ant-design/issues/19948 + onCancel={e => e.stopPropagation()} key={uid.value} style={{ display: 'none' }} accept={accept}