Skip to content

Commit

Permalink
fix(comp:select): blur event make span render bad
Browse files Browse the repository at this point in the history
  • Loading branch information
kovsu committed Jan 25, 2023
1 parent caf4dbf commit 378d1c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export function useInputState(props: SelectorProps, mergedSearchable: ComputedRe
}

const handleBlur = (evt: FocusEvent) => {
if (props.allowInput && !props.multiple) {
props.value[0] = inputValue.value
inputValue.value = ''
}
isFocused.value = false
callEmit(props.onBlur, evt)
}
Expand Down

0 comments on commit 378d1c4

Please sign in to comment.