Specify a ReactClass instead of the std input html tag#34
Conversation
|
This is an really interesting stuff which i would use essentially at - https://github.com/Minio-io/polygon |
…d_of_std_html_tags
|
it seems that React.PropTypes.instanceOf(ReactCompositeComponent) doesn't work, it shows this warning msg "Failed propType: invalid 'instanceof' operand expectedClass". Also, I found this ticket react/react#2374 which might lead us to conclude that is enough to test the react class against the function type |
…d_of_std_html_tags Conflicts: src/typeahead/index.js
…eactClass instead of the standard typeahead html input
|
Well, when the developer want to use his own custom and complicated react class instead of the standard input element, inputQuerySel will help to specify which element that has to be treated by typeahead.. I will see if mixins could fit in this case.. |
|
Any news for the ability to provide custom element? I would like to be able to use Typeahead with a 👍 on this PR. |
|
ReactTransitionGroup uses |
|
In the same vein, It would be interesting to be able to replace the TypeaheadSelector by a React component in order to add the possibility of different behaviors to it:
|
|
According to the documentation, the correct PropType for React Components is |
Since react-typeahead is a react library, this pull request helps the user to specifiy a react class in replacement of the standard input html tag, this pull request is not complete until the original idea is discussed