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

AutoComplete with DataSourceItemObject isn't working #5860

Closed
ganlub opened this issue Apr 23, 2017 · 2 comments · Fixed by #5999
Closed

AutoComplete with DataSourceItemObject isn't working #5860

ganlub opened this issue Apr 23, 2017 · 2 comments · Fixed by #5999
Assignees

Comments

@ganlub
Copy link

ganlub commented Apr 23, 2017

Version

2.9.2

Environment

Archlinux, latest Firefox/Chromim

Reproduction link

https://codepen.io/ganlub/pen/LyZJmM?editors=0010

Steps to reproduce

Type on the AutoComplete input, then the dataSource state will be updated but the dropdown options won't display.

What is expected?

To behave the the same way it works with an array of strings (DataSourceItemType = string).

What is actually happening?

AutoComplete with DataSource of the type DataSourceItemObject is no updating the dropdown options list on state change.

@ganlub
Copy link
Author

ganlub commented Apr 25, 2017

I found that passing the filterOption prop as false on the AutoComplete component fixes the problem.

Either updating the documentation or adding a default value for the filterOption here might be enough.

RaoHai added a commit to RaoHai/ant-design that referenced this issue May 3, 2017
@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants