diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 0167451b4..7b12b2852 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -259,28 +259,6 @@ async function onScroll({ to, direction, from, index }) { } defineExpose({ opts: myOptions }); - -function handleKeyDown(event) { - if (event.key === 'Tab') { - event.preventDefault(); - - const inputValue = vnSelectRef.value?.inputValue; - - if (inputValue) { - const matchingOption = myOptions.value.find( - (option) => - option[optionLabel.value].toLowerCase() === inputValue.toLowerCase() - ); - - if (matchingOption) { - emit('update:modelValue', matchingOption[optionValue.value]); - } else { - emit('update:modelValue', inputValue); - } - vnSelectRef.value?.hidePopup(); - } - } -}