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

Display the selected item by the expanded dropdown AutoComplete #46401

Closed
goldpvlv opened this issue Dec 12, 2023 · 2 comments
Closed

Display the selected item by the expanded dropdown AutoComplete #46401

goldpvlv opened this issue Dec 12, 2023 · 2 comments

Comments

@goldpvlv
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Select "value" from the dropdown
  2. Scroll down the dropdown
  3. Close the dropdown
  4. Open the dropdown

What is expected?

After opening the dropdown, the item that is selected in the field is displayed

What is actually happening?

The dropdown opens in an obscure place

Environment Info
antd 4.24.9
React 18.2.0
System Win10
Browser Chrome

I need to position the selected item into the visible area every time the dropdown is expanded

@zombieJ
Copy link
Member

zombieJ commented Dec 12, 2023

value is the same which makes it can not confirm which one you want to scroll. Pls follow React warning and fix it.

截屏2023-12-12 15 24 46

@zombieJ zombieJ closed this as completed Dec 12, 2023
@goldpvlv
Copy link
Author

@zombieJ thank you for answer
and is it possible to set "label" instead of "value" in the input field?

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

2 participants