Closed Bigdragon13th closed 4 years ago
Oh man, you guys come with some nice edge cases from time to time hehe
To deliver the expected behaviour I would have to rewrite a big chunk of the plugin due to the way it finds the current section, which I'll probably won't do in the near future, so my suggestion is that you hack it a little bit by maybe observing the item that gets the proper active class and then adding it to the one that didn't get it too. Not the best solution but easy to implement and solves your problem I guess.
Or you can always try to implement the solution in a fork, but I would probably not merge it very soon as it would require a lot of changes and a lot of tests to see if everything still works.
If the item in menu point to the same link, only the last item got the
is-active
class when page scroll to that section.E.g.
Only
Pricing info 2
gotis-active
class.Expected Behavior: Both
Pricing info
andPricing info 2
should gotis-active
class.