This line of code needs to be improved so it doesn't just toggle the navigation drawer between open and closed, but closes it only. At the moment, when navigating backwards in history, the drawer opens when it shouldn't.
See google/material-design-lite#1246
I think the best solution is to still call the toggleDrawer function, but to check first (by inspecting css classes) as to whether the drawer is open or not.
This line of code needs to be improved so it doesn't just toggle the navigation drawer between open and closed, but closes it only. At the moment, when navigating backwards in history, the drawer opens when it shouldn't.
See google/material-design-lite#1246
I think the best solution is to still call the toggleDrawer function, but to check first (by inspecting css classes) as to whether the drawer is open or not.