mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select] exposes blur invalid (#15450)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user