Skip to content

Commit

Permalink
fix(storefront): BCTHEME-219 Social icons not clickable in modal afte…
Browse files Browse the repository at this point in the history
…r reopening
  • Loading branch information
BC-tymurbiedukhin committed Oct 16, 2020
1 parent 0564704 commit 63050d9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- Delete item button in cart cut off from right side when in focus. [#1823](https://github.com/bigcommerce/cornerstone/pull/1823)
- Focus not visible on logo element. [#1800](https://github.com/bigcommerce/cornerstone/pull/1800)
- Incorrect styles for focused buttons in grid card product item. [#1801](https://github.com/bigcommerce/cornerstone/pull/1801)
- Add global region to header. [#1801](https://github.com/bigcommerce/cornerstone/pull/1859)
- Add global region to header. [#1859](https://github.com/bigcommerce/cornerstone/pull/1859)

## 4.10.0 (10-01-2020)
- Return heading to product card. [#1848](https://github.com/bigcommerce/cornerstone/pull/1848)
Expand Down
3 changes: 3 additions & 0 deletions assets/js/theme/global/quick-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default function (context) {

modal.setupFocusableElements(modalTypes.QUICK_VIEW);

// eslint-disable-next-line no-undef
addthis.toolbox('.addthis_toolbox');

return new ProductDetails(modal.$content.find('.quickView'), context);
});
});
Expand Down
9 changes: 0 additions & 9 deletions templates/components/common/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@
</li>
{{/each}}
</ul>
<script type="text/javascript"
defer src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e94ed470ee51e32"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
if (typeof(addthis) === "object") {
addthis.toolbox('.addthis_toolbox');
}
});
</script>
</div>
{{/if}}
{{#if settings.facebook_like_button.enabled}}
Expand Down
6 changes: 6 additions & 0 deletions templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
window.stencilBootstrap("{{page_type}}", {{jsContext}}).load();
</script>

{{!-- Adding script for addthis social icons --}}
<script type="text/javascript"
defer
src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e94ed470ee51e32">
</script>

{{{footer.scripts}}}
</body>
</html>

0 comments on commit 63050d9

Please sign in to comment.