diff --git a/packages/components/select/src/Select.tsx b/packages/components/select/src/Select.tsx index 42b47e9ff..2a48554b5 100644 --- a/packages/components/select/src/Select.tsx +++ b/packages/components/select/src/Select.tsx @@ -107,7 +107,13 @@ export default defineComponent({ } } - const handleBlur = () => accessor.markAsBlurred() + const handleBlur = () => { + if (props.allowInput && inputValue.value) { + changeSelected(inputValue.value) + clearInput() + } + accessor.markAsBlurred() + } const handleItemRemove = (value: VKey) => { focus() handleRemove(value)