fix(components): [select] Remote search does not show menu when it has options and no query (#15683)

* fix(components): [select] Remote search does not show menu

* fix(components): fix remote search menu issue without a query
This commit is contained in:
nigi
2024-01-26 10:19:35 +08:00
committed by GitHub
parent 32c4dee9e5
commit 1f6537af4c
2 changed files with 2 additions and 4 deletions

View File

@@ -358,8 +358,7 @@ const useSelect = (props: ISelectV2Props, emit) => {
// methods
const toggleMenu = () => {
if (selectDisabled.value) return
if (props.filterable && props.remote && isFunction(props.remoteMethod))
return
if (states.menuVisibleOnFocus) {
// controlled by automaticDropdown
states.menuVisibleOnFocus = false

View File

@@ -687,8 +687,7 @@ export const useSelect = (props: ISelectProps, emit) => {
const toggleMenu = () => {
if (selectDisabled.value) return
if (props.filterable && props.remote && isFunction(props.remoteMethod))
return
if (states.menuVisibleOnFocus) {
// controlled by automaticDropdown
states.menuVisibleOnFocus = false