diff --git a/assets/js/theme/global/currency-selector.js b/assets/js/theme/global/currency-selector.js index 63b72ba665..9393ce49c4 100644 --- a/assets/js/theme/global/currency-selector.js +++ b/assets/js/theme/global/currency-selector.js @@ -19,11 +19,7 @@ export default function (cartId) { }); } - $(document.body).on('click', '.currencySelector', () => { - $('.currency-selection-list').toggleClass('active'); - }); - - $(document.body).on('click', '[data-cart-currency-switch-url]', event => { + $('[data-cart-currency-switch-url]').on('click', event => { const currencySessionSwitcher = event.target.href; if (!cartId) { return; diff --git a/templates/components/common/currency-selector.html b/templates/components/common/currency-selector.html index 57c3c7a289..71a7874613 100644 --- a/templates/components/common/currency-selector.html +++ b/templates/components/common/currency-selector.html @@ -1,7 +1,19 @@ {{#if currency_selector.currencies.length '>' 1}}