fix(components): [select] click icon not respond (#6441)

This commit is contained in:
Alan Wang 2022-03-06 05:00:00 -05:00 committed by GitHub
parent ac89f5f4e1
commit a4679050ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -716,10 +716,10 @@ export const useSelect = (props, states: States, ctx) => {
const handleFocus = (event) => {
if (!states.softFocus) {
if (props.automaticDropdown || props.filterable) {
states.visible = true
if (props.filterable) {
if (props.filterable && !states.visible) {
states.menuVisibleOnFocus = true
}
states.visible = true
}
ctx.emit('focus', event)
} else {