The selected item in Nav Bar disappears when in view

I have a navigation bar with a few elements that redirect to other pages/sections. When the page/section in question is on view, that element in the nav bar linked to it disappears, which I don’t want to happen, but I can’t figure out what is the setting that prevents it from happening