Browse Source

Upload: fix duplicated handleClick due to keydown bubbling (#10624)

杨奕 7 years ago
parent
commit
6f4f57172b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/upload/src/upload.vue

+ 1 - 0
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();
       }