Skip to content

[Component] [select] el-select does not invoke remote-method when first opened #10103

@orange-buffalo

Description

@orange-buffalo

Bug Type: Component

Environment

  • Vue Version: 3.2.41
  • Element Plus Version: 2.2.18
  • Browser / OS: Chrome/106.0.0.0
  • Build Tool: Other

Reproduction

Related Component

  • el-select

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. Provide el-select with filterable and remote-method.
  2. remote-method provides updated options for empty query.
  3. Click on "suffix" (arrow icon) of the select component.
  4. Observe the dropdown (A).
  5. Click outside the component to close the dropdown.
  6. Click on "suffix" (arrow icon) of the select component again.
  7. Observe the dropdown (B).

What is Expected?

A: remote-method is invoked and list of provided options is rendered.
B: remote-method is invoked and list of provided options is rendered.

What is actually happening?

A: remote-method is not invoked and dropdown is empty.
B: remote-method is invoked and list of provided options is rendered.

Additional comments

(empty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions