I have a Vue Js App with a side nav with a drop-down list. When I change the route from one of the dropdowns to a single li, the dropdown remains open until a page refresh. How do I re-render the nav component so that the dropdown li closes on route change? I read somewhere that adding :key="$route.fullPath" will do but the dropdown list won't open anymore if that is added to <router-view/>.
How do I make this work?