Skip to content

Commit

Permalink
fix(comp:select): blur event make span render bad (#1437)
Browse files Browse the repository at this point in the history
fix #1431
  • Loading branch information
kovsu committed Feb 8, 2023
1 parent caf4dbf commit b15fedd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/components/select/src/Select.tsx
Expand Up @@ -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)
Expand Down

0 comments on commit b15fedd

Please sign in to comment.