From 66fc112dfd9b504965b40698733ffbdd0726bfd4 Mon Sep 17 00:00:00 2001 From: Xc <124118265@qq.com> Date: Wed, 5 Apr 2023 14:50:25 +0800 Subject: [PATCH] feat(components): [date-picker] support numpadEnter (#12323) --- .../date-picker/src/date-picker-com/panel-date-pick.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue b/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue index c2c1c457f0..06de326603 100644 --- a/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue +++ b/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue @@ -609,7 +609,9 @@ const handleKeydownTable = (event: KeyboardEvent) => { event.preventDefault() } if ( - [EVENT_CODE.enter, EVENT_CODE.space].includes(code) && + [EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.numpadEnter].includes( + code + ) && userInputDate.value === null && userInputTime.value === null ) {