react-split-pane
react-split-pane copied to clipboard
_this.props.innerRef is not a function [TypeScript]
trafficstars
Hello, Kudos to the developer, amazing work.
I tried the v2 version as it supports multiple panes. However, as i tried to implement <Pane>, I encountered this error.
TypeError: _this.props.innerRef is not a function in react-split-pane/lib/Pane.js:84
I use react: ^16.6.3 | typescript: ^3.1.6 | react-split-pane: ^2.0.2 | @types/inline-style-prefixer: ^5.0.0
I have zero idea what might cause this problem. Any help/ideas is greatly appreciated! Thankyou
bump. @josephjesseyoung did you figure this out? thanks
This happens when I try to wrap Pane in a styled component. Using Pane on its own resolves the issue