Closed dlech closed 1 year ago
This happens because the SearchInput rendered now provides a ref
property in inputProps
. This is passed to the Blueprints.js InputGroup
component. However, the ref
property of the InputGroup
component is for the React component, not the underlying HTML element. Since the InputGroup
component doesn't have a focus
method, it triggers the crash.
Thanks a lot for your contribution! The fix is deployed as of 2.0.1.
Typing to trigger the search crashes at runtime with:
So I suppose this could just be a bug and may not be a React version compatibility issue.
Originally posted by @dlech in https://github.com/lukasbach/react-complex-tree/issues/196#issuecomment-1356330898