malte-wessel / react-custom-scrollbars

React scrollbars component
http://malte-wessel.github.io/react-custom-scrollbars/
MIT License
3.2k stars 578 forks source link

Scrollbar children not displayed when component in sub-route #421

Open wellgordon opened 1 year ago

wellgordon commented 1 year ago

Hi,

When the Scrollbar component is rendered within a component that is in a sub route of react-router, the children of the Scrollbar are not displayed on the screen. For example:

App:

....

ParentComponent:

const {path} = useRouteMatch()

...

ChildComponent:

// the
    is not displayed on the screen, although I can see the elements accurately represented in Inspect in Chrome
    • Hello world
    • ....