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

Reassign event listener when onPlaceSelected changes

Open AleksandrZhukov opened this issue 3 months ago • 0 comments

I found that when onPlaceSelected handler has some dependencies, which can be change through the time - usePlacesWidget still calls the old version of onPlaceSelected.

Reassigning the event listener helps resolve this issue.

AleksandrZhukov avatar Apr 17 '24 18:04 AleksandrZhukov