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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
}
}