mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
fix(components): [select] exposes blur invalid (#15450)
This commit is contained in:
parent
e7c1b53da3
commit
b954b033f9
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user