csauvage / react-algolia-places

A simple but powerful React.js wrapper around fantastic Algolia's place !
11 stars 5 forks source link

Allow onChange props to change #2

Closed prevostc closed 6 years ago

prevostc commented 6 years ago

The current implementation silently ignores changes to the onChange props. The function reference is passed only on mount and subsequent changes to the props are ignored.

I also noted that the api of onChange takes just 1 param (the event), and I updated that. https://community.algolia.com/places/examples.html#complete-form

csauvage commented 6 years ago

True ! Nice shot.