From 04f6ba33c70d4b36dfffb90d53f378f51ed66be1 Mon Sep 17 00:00:00 2001 From: pengpeng <30883395+webvs2@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:07:36 +0800 Subject: [PATCH] fix(vcSelect):Maintain keyboard events when using a custom element. (#8321) --- components/vc-select/BaseSelect.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/vc-select/BaseSelect.tsx b/components/vc-select/BaseSelect.tsx index 72f50d840..8c1668729 100644 --- a/components/vc-select/BaseSelect.tsx +++ b/components/vc-select/BaseSelect.tsx @@ -840,6 +840,7 @@ export default defineComponent({ customizeRawInputElement, { ref: selectorDomRef, + tabindex: 0, }, false, true, @@ -877,7 +878,11 @@ export default defineComponent({ // Render raw if (customizeRawInputElement) { - renderNode = selectorNode; + renderNode = ( +
+ {selectorNode} +
+ ); } else { renderNode = (