fix(vcSelect):Maintain keyboard events when using a custom element. (#8321)
parent
35c1ad9c80
commit
04f6ba33c7
|
@ -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 = (
|
||||
<div onKeydown={onInternalKeyDown} onKeyup={onInternalKeyUp}>
|
||||
{selectorNode}
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
renderNode = (
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue