fix: chrome 117 onCancel event (#6991)

This commit is contained in:
果冻橙 2023-10-16 09:48:13 +08:00 committed by GitHub
parent 3084ced55f
commit c99e9b00bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}