-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] "openOnFocus" is defective #6659
Comments
+1 |
Can't you just set |
Yea that is what I did on my end. However, if someone downloads the library and tries the prop "openOnFocus" it will not work. |
So perhaps the solution would be to override the default filter with |
Closed by #4783 |
Problem description
the prop "openOnFocus" from the AutoComplete Component doesn't function as desired because the filter function doesn't take in consideration the prop.
filter: (searchText, key) => searchText !== '' && key.indexOf(searchText) !== -1,
so when the prop is true nothing really happens because the searchText == ""
Link to minimal working code that reproduces the issue
<AutoComplete openOnFocus hintText="Type anything" dataSource={ [ "exeption1","other Type", "another Type" ]} onUpdateInput={this.handleUpdateInput} />
Versions
The text was updated successfully, but these errors were encountered: