Table of Contents Auto Collapse Not Working

I have a TOC in a CMS blog sidebar. As you scroll down the page, the H2 links expand to show the H3s within, but then they don’t auto collapse as you keep scrolling. Any help?

hey @PHD can you please share your links?