yury-dymov / react-autocomplete-input

Autocomplete input field for React
https://yury-dymov.github.io/react-autocomplete-input/
MIT License
199 stars 65 forks source link

Use PropTypes.elementType to support wrapped components #44

Closed silverwind closed 4 years ago

silverwind commented 4 years ago

Components wrapped in forwardRefdo not identify as a function but as a object. Use PropTypes.elementType to allow those as well.

Fixes: https://github.com/yury-dymov/react-autocomplete-input/issues/40

silverwind commented 4 years ago

@yury-dymov any chance to see this merged? I want to stop using my fork :)

yury-dymov commented 4 years ago

@silverwind Thank you for contribution, was very busy, merging and publishing!