Make sure to proxy special prop ref

This commit is contained in:
Luke Barnard 2018-03-21 15:58:14 +00:00
parent b80568b1c5
commit 39e9d52c04
3 changed files with 22 additions and 6 deletions

View file

@ -26,7 +26,7 @@ class GeminiScrollbarWrapper extends React.Component {
// By default GeminiScrollbar allows native scrollbars to be used
// on macOS. Use forceGemini to enable Gemini's non-native
// scrollbars on all OSs.
return <GeminiScrollbar forceGemini={true} {...this.props}>
return <GeminiScrollbar ref={this.props.wrappedRef} forceGemini={true} {...this.props}>
{ this.props.children }
</GeminiScrollbar>;
}