Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaning value field via Fieldnames prop disabling the search feature on TreeSelect #49052

Open
chErdemontas opened this issue May 23, 2024 · 2 comments

Comments

@chErdemontas
Copy link

Reproduction link

Edit on StackBlitz

Steps to reproduce

Change tree data to this

{
    key: 'parent 1',
    title: 'parent 1',
    children: []
}

and give fieldNames={{ value: 'key' }} to the <TreeSelect/>

What is expected?

I expect to work as same as we use "value" insted of changed field.

What is actually happening?

Search does not find any result.

Environment Info
antd 5.17.3
React 18.3.1
System MacOs
Browser Chrome Version 124.0.6367.201 (Official Build) (x86_64)
Copy link

stackblitz bot commented May 23, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@chErdemontas
Copy link
Author

any comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant