arielsalminen / TinyNav.js

Responsive navigation plugin that weighs just 443 bytes
http://tinynav.viljamis.com/
635 stars 207 forks source link

Using header overrides active #55

Closed paulvantuyl closed 10 years ago

paulvantuyl commented 10 years ago

Here's how I've set it up:

$(function () {
  $(".secondary-nav").tinyNav({
    active: 'active',
    header: 'Select Page'
  });
});

What I would like is if there's no item with the class .active, the header to display. I looked through other issues and am pretty sure this is the correct way of doing this, but it's not working as expected.

Jaesin commented 10 years ago

I agree that header should not interfere with selecting the active index and should fall back to the header if there are no active matches. 4b3f2cb should fix this issue. Please test and comment on the pull request #72 if it's working for you.