mirror of https://github.com/ElemeFE/element
Upload: fix duplicated handleClick due to keydown bubbling (#10624)
parent
5da88ade6b
commit
6f4f57172b
|
@ -155,6 +155,7 @@ export default {
|
|||
}
|
||||
},
|
||||
handleKeydown(e) {
|
||||
if (e.target !== e.currentTarget) return;
|
||||
if (e.keyCode === 13 || e.keyCode === 32) {
|
||||
this.handleClick();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue