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

Open product tabs on load. #1304

Merged
merged 2 commits into from
Jul 11, 2018
Merged

Open product tabs on load. #1304

merged 2 commits into from
Jul 11, 2018

Conversation

Ubersmake
Copy link
Contributor

What?

#1220 but with an additional guard for non-existent tab names.

This only works on page load. Because the hash isn't technically an HTML anchor, browsers have no idea what "anchor" to view and will end up doing nothing.

Additionally, the guard for non-existent tab names might not be necessary. As far as the code is concerned the JS will attempt to operate on nothing. But $activeTab.length > 0 definitely makes sure it doesn't run.

Tickets / Documentation

Screenshots

Tab:
tab

Definitely Not a Tab:
notatab

@bigbot
Copy link

bigbot commented Jul 9, 2018

Autotagging @bigcommerce/storefront-team @davidchin

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