mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user