fix(components): [select] exposes blur invalid (#15450)

This commit is contained in:
xiaoming
2024-01-11 14:45:43 +08:00
committed by GitHub
parent e7c1b53da3
commit b954b033f9

View File

@@ -654,7 +654,7 @@ export const useSelect = (props: ISelectProps, emit) => {
}
const blur = () => {
inputRef.value?.blur()
handleClickOutside()
}
const handleClearClick = (event: Event) => {
@@ -666,7 +666,7 @@ export const useSelect = (props: ISelectProps, emit) => {
if (isFocused.value) {
const _event = new FocusEvent('focus', event)
handleBlur(_event)
nextTick(() => handleBlur(_event))
}
}