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

Add context to the menu collapsible factory target elements #1299

Closed
wants to merge 1 commit into from

Conversation

shotaK
Copy link
Contributor

@shotaK shotaK commented Jul 3, 2018

What?

I've just duplicated a menu in global.js and in templates and supplied a proper context:

global.js

menu('[data-menu]');
menu('[data-menumobile]');

It seemed to work fine, except when I was clicking the first menu items, the second menu items were opening. After some investigation, I've found out that the context was not specified for the targeted menu items. I've added the context to them and it worked fine.

@bigbot
Copy link

bigbot commented Jul 3, 2018

Autotagging @bigcommerce/storefront-team @davidchin

@Ubersmake
Copy link
Contributor

Hi @shotaK . Thank you for all your work on this. It has been pulled into a separate PR and merged to more quickly get around the CHANGELOG.md conflict.

@Ubersmake Ubersmake closed this Nov 29, 2018
@bookernath
Copy link
Contributor

Merged as part of #1382

@shotaK shotaK deleted the collapsible-context branch November 30, 2018 06:00
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.

4 participants