Explorar o código

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

杨奕 %!s(int64=7) %!d(string=hai) anos
pai
achega
6f4f57172b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();
       }