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

Fix submenu click on mobile navigation #1472

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

kylebolstad
Copy link
Contributor

What?

Change the event handler to correctly call this.onSubMenuClick. Without this fix, mobile navigation is not showing/hiding siblings correctly.

@bigbot
Copy link

bigbot commented Apr 7, 2019

Autotagging @bigcommerce/storefront-team @davidchin

@Ubersmake
Copy link
Contributor

Hi @kylebolstad . I'm trying to reproduce the issue this PR fixes, and I'm not sure how to set things up. How do I get mobile navigation into a state where sibling elements are not being shown or hidden correctly?

@kylebolstad
Copy link
Contributor Author

kylebolstad commented Apr 9, 2019

@Ubersmake Good point! I totally forgot to mention that this seems to only happen when "navigation_design": "alternate" is set in config.json. That should be the only thing required to replicate the bug.

@Ubersmake
Copy link
Contributor

Thanks for this. I'm attaching GIFs so that anyone looking at this PR knows what actually changed. It took me some time to figure out what was being affected: expanding and collapsing category navigation.

Before:
before

After:
after

@Ubersmake Ubersmake merged commit 70fa9a7 into bigcommerce:master Apr 10, 2019
@kylebolstad kylebolstad deleted the kyle/mobile-menu-toggle branch April 10, 2019 19:47
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

Successfully merging this pull request may close these issues.

None yet

3 participants