DEV Community

Gurupal Singh
Gurupal Singh

Posted on

Toggle state changed on routing..!!

Hi, I am building a dashboard with reactjs. I have nested menu in the admin sidebar which is controlled by toggle on parent item. Whenever i click on any of the nested item the toggle items menu get closed. Screenshot attached for the same.

Anyone, please suggest some solution.

I am using react router for navigation.

Discussion (0)