Fixes #12901: Refactors list group active state for use on non-anchors