Navbar link highlighting for active page not working β using state
Navbar link highlighting for active page not working β using state
At a glance
A community member is trying to create a navbar in Webstudio where the link to the current page is highlighted. They are using state to handle this, but it's not working as expected. Another community member suggests that the issue may be due to the preview mode, as the highlighting works fine when the site is published. The community members have created an issue on the Webstudio repository to address this problem.
I'm trying to create a navbar in Webstudio where the link to the current page is highlighted. I'm using state to handle this, but for some reason it's not working as expected. I'm not sure what I'm doing wrong.
Okay update, I figured out it works fine, but only if you publish the site and check it there. In the preview if i select the page it doesn't work properly.
Okay update, I figured out it works fine, but only if you publish the site and check it there. In the preview if i select the page it doesn't work properly.