react-autocomplete-input
react-autocomplete-input copied to clipboard
add onChangeAdapter prop
I'm using a 3rd party component that is firing onChange using the new value as parameter ( not the complete event ), so I need the adapter
Too narrow to merge, sorry. You can introduce a wrapper component instead in your code and do the same thing. Something like that should do the trick
const AutoCompleteInputWrapper = ({ onChangeAdapter, ...rest }) = <ReactAutocompleteInput onChange={onChangeAdapter} {...rest} />;