-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to make the parent clickable #27
Comments
Right, my plugin should let you do that... let me do some double checking (sorry for the slower response. Been out of town). What happened when you tried it? You aren't actually stating an issue here. |
The issue is that the parent element does not link anywhere it only acts as a label (even though it has an href). You can see an example here (try clicking "About The Tests") - http://11thstreetmedia.net/ |
Sorry, after looking deeper, some things came back to my memory. This is a duplicate of case #16. Bootstrap is preventing the default action for those nav items. If you want them to be clickable, you'll have to figure out a way to get around that, but it's something outside the scope of my plugin. |
I'm using Bootstrap 3 now and to make the root node clickable I just returned
|
Issue #16 was the solution under Bootstrap 2. I think it still applies because I think the function you pasted in here is bound to a click event. The reason returning true in your snippet works is because returning false in a jQuery event callback stops all propagation, including the default behavior of the current event. By returning true, you allow the event to behave normally. Just be aware on the effect this will have on mobile users (if that's even a concern of yours). |
Yeah... it's working great with Bootstrap 3. I tested it on an iPhone and On Friday, October 11, 2013, Cameron Spear wrote:
|
One issue I run into with clients is they always want the menu to work on hover, and for the parent to be clickable. For example about use - /about/ and then sub pages below that like contact, history, etc...
This would be similar to how superfish menu works.
The text was updated successfully, but these errors were encountered: