Skip to content
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

Dropdown in header nav not working #5

Open
stacymoorhead opened this issue May 19, 2017 · 5 comments
Open

Dropdown in header nav not working #5

stacymoorhead opened this issue May 19, 2017 · 5 comments

Comments

@stacymoorhead
Copy link

Hello! I've made it to section 5 and upon working on the js for the drop downs I've noticed they're not working. At first I thought it was my error, but after switching to master branch I've noticed it's not working there either. I'm not that advanced yet with js so I'm not sure where the problem is occurring. I decided to work with your copy of _S and not download the latest version since this is my first try at the tutorial.

@mojenmojen
Copy link

mojenmojen commented Jun 12, 2017

+1. The dropdown menus are not working in the exercise files on Lynda.com, and they also don't work with the files here.

Edited to add: I figured out a workaround and submitted a pull request. I don't know if it's the best way to solve the problem but it does work.

@antpearson
Copy link

Didn't work for me either but your fix worked @mojenmojen, thanks!

@nicollehahn
Copy link

Thanks, @mojenmojen, your fix worked for me also!

@frontenddevguy
Copy link

Duplicating my response from da5id5's issue:

That should say .children.toggled-on and is incorrectly specified as .sub-menu.toggled-on as far as the branch I am currently at (06_05).

navigation.js specifies both:
_this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' );

It could be an _s update to class_walker (class-walker-nav-menu-checklist.php)
public function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent<ul class='children'>\n"; }

This requires that we are merging in our local changes :)

@JimDoubleU
Copy link

Thank you @mojenmojen for the fix. : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants