Commit 6f4f5717 authored by 杨奕's avatar 杨奕 Committed by GitHub

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

parent 5da88ade
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
} }
}, },
handleKeydown(e) { handleKeydown(e) {
if (e.target !== e.currentTarget) return;
if (e.keyCode === 13 || e.keyCode === 32) { if (e.keyCode === 13 || e.keyCode === 32) {
this.handleClick(); this.handleClick();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment