Closed fantgeass closed 11 years ago
Does it work with nil?, or an empty array?
nope
I think the problem is that you always add the link to the list: https://github.com/jejacks0n/navigasmic/blob/f62ae1717db0b837c7bf3edfb3292ab408ce85a6/lib/navigasmic/core/item.rb#L52
I'd prefer to only add the link as a default, so when no :highlights_on argument is given. This is in incompatible change, but imo the only way to make :hightlights_on => false - and other cases where you don't want the item be highlighted when visiting the link it points to - work. What do you think?
Looks like this is fixed.. please report your findings.
I set "highlights_on: false" to the item, but LI-tag still have class 'active' when I'm on that page.