mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
fix(components): [select] use blur
in the tooltip slot has no effect (#18335)
* fix(components): [select] use `blur` in the tooltip slot has no effect * fix(components): [select-v2] use `blur` in the slot has no effect * feat: delete useless code
This commit is contained in:
parent
bd245cabdc
commit
16bb0b7df1
@ -562,6 +562,11 @@ const useSelect = (props: ISelectV2Props, emit: SelectEmitFn) => {
|
||||
}
|
||||
|
||||
const blur = () => {
|
||||
if (expanded.value) {
|
||||
expanded.value = false
|
||||
nextTick(() => inputRef.value?.blur())
|
||||
return
|
||||
}
|
||||
inputRef.value?.blur()
|
||||
}
|
||||
|
||||
|
@ -657,6 +657,11 @@ export const useSelect = (props: ISelectProps, emit) => {
|
||||
}
|
||||
|
||||
const blur = () => {
|
||||
if (expanded.value) {
|
||||
expanded.value = false
|
||||
nextTick(() => inputRef.value?.blur())
|
||||
return
|
||||
}
|
||||
inputRef.value?.blur()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user