Open BartuCulha opened 2 years ago
this is cause by the router behaviour. initial navigation ends up with router.activeNavigation
as undefined
, which ends up always picking current index as 0, highlighting incorrect option. i've introduced below changes
navigation.instruction
in load()
gets picked correctly, so i tried setting it on component scope, to be picked up as fallback for currentDocIndex
.
this line seemed promising:
const currentDoc = this.navInstructions;
Steps to reproduce:
Currently: Selected page is not highlighted![Documentation-Token-Swap-FAQ-Prime-Deals.png](https://images.zenhubusercontent.com/609a9f5f0a40bdfde66fe338/bb0c6270-d30e-4627-809b-fd29fb55c883)
Expected: To highlight the selected page![Token-Swap-FAQ-Documentation-Documentation-Prime-Deals.png](https://images.zenhubusercontent.com/609a9f5f0a40bdfde66fe338/a4bdb9c6-458a-447f-aa82-9998431d33b2)