TarikHuber / material-ui-responsive-drawer

Material-UI responsive Drawer is a React-Redux component that uses Material-UI to create a responsive Drawer.
MIT License
43 stars 18 forks source link

BodyContainer with nested Route issue #7

Closed mindtricksdev closed 7 years ago

mindtricksdev commented 7 years ago

Hello, I like your responsive drawer idea!

I am experiencing some issues with nested <Route> (react-router v4) elements inside the <BodyContainer>. I was expecting that the routing will still work. However, the render does not trigger after a route change.

I was able to change the <BodyContainer> to a simple <div> to make it work but now I need to handle the widths manually. Is there any plan for this to be supported?

Thanks

TarikHuber commented 7 years ago

Hi,

Have you tried to put the BodyContainer inside the Route? Take a look into this demo project that demonstrates the usage of this and other libraries.

mindtricksdev commented 7 years ago

The demo project looks great. This does indeed fix my issue.

Thanks!