-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Ability to Set Props on the Input Field #4353
Comments
Here's one possible workaround I guess:
It seems that a setTimeout is needed when |
Focus can be done on the AutoComplete field by using the focus() method.
|
This issue is related to #4556 |
@LeeKevin neat. But what if you need to focus the AutoComplete input from a different component (do not have access to this.refs)? |
If you set a |
Closed by #4783 |
Problem description
The AutoComplete component does not expose an API / prop for setting a
ref
, class, id, or other unique identifier on theinput
element within it. This prevents the ability to callfocus()
programmatically on that input element from an action elsewhere in the app.An example would be clicking a "search" button that then launches an AutoComplete component with focus programmatically placed on the
input
:This would allow the user to only have to click once to start searching, rather than twice (the second time having to be on the
input
element itself).Are there any workarounds for this?
The text was updated successfully, but these errors were encountered: