fix: [ElSelectV2] set value to an empty array after selection error (#3875)

This commit is contained in:
Alan Wang 2021-10-14 17:36:41 +08:00 committed by GitHub
parent 4b5dc2123f
commit 4cffe3d9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -654,6 +654,8 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
initHovering = true
}
})
} else {
states.cachedOptions = []
}
} else {
if (props.modelValue) {