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

Support passing props to input #51

Closed
Andreyco opened this issue Mar 23, 2017 · 3 comments
Closed

Support passing props to input #51

Andreyco opened this issue Mar 23, 2017 · 3 comments

Comments

@Andreyco
Copy link

Either support passing props to underlying input, or allow user to provide component to render.

@hibiken
Copy link
Owner

hibiken commented Mar 25, 2017

Currently the component takes a quite few props that are directly passed to input (value, onChange, placeholder, inputName, inputId, and also nested under styles and classNames)

@Andreyco Did you have any specific prop in mind?

Also, I'm thinking about combining these props to inputProps (object) in the next version release.

@Andreyco
Copy link
Author

onBlur event is what I am looking for.

I will play with the lib locally and will try to add support for custom input element, which will allow flexibility & no similar feature requests like this :)

@hibiken
Copy link
Owner

hibiken commented Apr 15, 2017

Closes via #60

@hibiken hibiken closed this as completed Apr 15, 2017
judygab pushed a commit to judygab/react-places-autocomplete that referenced this issue May 29, 2019
…element of PlacesAutocomplete.

User can pass onBlur as props to PlacesAutocomplete instance and modify what happens when the
searchbox is out of focus. For example, I needed to capture the input if user didn't select one o

hibiken#260, hibiken#51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants