From e20f223e7884f777514021f088192b21640dd68f Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 5 Apr 2018 17:39:25 +0100 Subject: [PATCH] Fix warning "Unknown prop `wrappedRef` on
tag..." GeminiScrollbar should not receive wrappedRef as a property, so remove it using object destructuring. --- src/components/views/elements/GeminiScrollbarWrapper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/elements/GeminiScrollbarWrapper.js b/src/components/views/elements/GeminiScrollbarWrapper.js index af801c0113..13eb14ecc3 100644 --- a/src/components/views/elements/GeminiScrollbarWrapper.js +++ b/src/components/views/elements/GeminiScrollbarWrapper.js @@ -18,6 +18,8 @@ import React from 'react'; import GeminiScrollbar from 'react-gemini-scrollbar'; function GeminiScrollbarWrapper(props) { + const {wrappedRef, ...wrappedProps} = props; + // Enable forceGemini so that gemini is always enabled. This is // to avoid future issues where a feature is implemented without // doing QA on every OS/browser combination. @@ -25,7 +27,7 @@ function GeminiScrollbarWrapper(props) { // By default GeminiScrollbar allows native scrollbars to be used // on macOS. Use forceGemini to enable Gemini's non-native // scrollbars on all OSs. - return + return { props.children } ; }