react-places-autocomplete icon indicating copy to clipboard operation
react-places-autocomplete copied to clipboard

feat($module): I added option to pass `onBlur` callback to the input

Open judygab opened this issue 6 years ago • 2 comments

…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 of the options from the list provided in a dropdown menu.

#260, #51

I made sure that my branch is from master, tests are running and commited using npm.

judygab avatar May 30 '19 14:05 judygab

Hey @judygab! Thank you for opening a pull request.

Would you mind taking a look at https://github.com/hibiken/react-places-autocomplete/issues/106#issuecomment-496140417.

That should work if you want to provide a handler for blur event on the input element.

hibiken avatar Jun 03 '19 22:06 hibiken

Hey @hibiken Thanks! and how would I pass the input value to the onBlur function?

judygab avatar Jun 05 '19 13:06 judygab