mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
fix(components): [select, select-v2] blur validate not executed (#20232)
This commit is contained in:
parent
38cbfbb0b0
commit
642946e4fd
@ -122,6 +122,9 @@ const useSelect = (props: ISelectV2Props, emit: SelectEmitFn) => {
|
||||
afterBlur() {
|
||||
expanded.value = false
|
||||
states.menuVisibleOnFocus = false
|
||||
if (props.validateEvent) {
|
||||
elFormItem?.validate?.('blur').catch((err) => debugWarn(err))
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -116,6 +116,9 @@ export const useSelect = (props: ISelectProps, emit: SelectEmits) => {
|
||||
afterBlur() {
|
||||
expanded.value = false
|
||||
states.menuVisibleOnFocus = false
|
||||
if (props.validateEvent) {
|
||||
formItem?.validate?.('blur').catch((err) => debugWarn(err))
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user