Skip to content

TreeSelect component example: The result of the filter is incorrect #6609

@waldonUB

Description

@waldonUB
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

navigator.platform: Win10; navigator.appName: 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.57; vue: 3.2.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

problem_treeSelect.gif

What is expected?

Find "label" instead of "value" in the option.
like this:
solve_treeSelect.gif

What is actually happening?

The default in the options is to find by "value", and this "value" is invisible to the user.

image.png


I wanted to change the default setting of "treeNodeFilterProp" from "value" to "label", but it will become a break change and affect the users in use. So I just changed the example document.
this is my pr: #6610

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