I want to use drawer. I wrote the basic code such that when user clicks nav button, the drawer.open is toggled (i.e. true, false, true, false, ...). However, if user goes to other page by clicking a link in drawer menu and comes back by clicking browser's back button, drawer.open is true and user can not click browser's nav button.
- User opens the page:
drawer.open=false. - User clicks the nav button:
drawer.open=true. - User clicks a link in the menu:
drawer.open=falsein new page. - User clicks browser's back button and comes back:
drawer.open=true.
Why is drawer.open=true in 4.? How do I fix this?