mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
fix(components): [select-v2] allow propagation of non-control key events in custom options (#19984)
fix: allow propagation of non-control key events in custom options
This commit is contained in:
parent
16dbe32b0d
commit
87e3d1d400
@ -227,7 +227,7 @@ export default defineComponent({
|
||||
const onKeydown = (e: KeyboardEvent) => {
|
||||
const { code } = e
|
||||
const { tab, esc, down, up, enter, numpadEnter } = EVENT_CODE
|
||||
if (code !== tab) {
|
||||
if ([esc, down, up, enter, numpadEnter].includes(code)) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user