From 6f4f57172b945f7f94563eb11358bb535e5639c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Mon, 9 Apr 2018 17:05:25 +0800 Subject: [PATCH] Upload: fix duplicated handleClick due to keydown bubbling (#10624) --- packages/upload/src/upload.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/upload/src/upload.vue b/packages/upload/src/upload.vue index f96a5194b..b55193ffc 100644 --- a/packages/upload/src/upload.vue +++ b/packages/upload/src/upload.vue @@ -155,6 +155,7 @@ export default { } }, handleKeydown(e) { + if (e.target !== e.currentTarget) return; if (e.keyCode === 13 || e.keyCode === 32) { this.handleClick(); }