“Current” class for top level dropdown

Ultimately I did get this solution working . I discovered that I had some left over changes from previous attempts that was confusing the issue.

For reference, here is the thread/post where I obtained the solution: