Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix non-clickable thumbnails
dominik-zeglen9a3a25b14abc
diff --git a/saleor/static/dashboard/js/components/modal.js b/saleor/static/dashboard/js/components/modal.jsindex ea3de126d7..4f72f55d69 100644--- a/saleor/static/dashboard/js/components/modal.js+++ b/saleor/static/dashboard/js/components/modal.js@@ -31,7 +31,7 @@ $('body').on('click', '.modal-trigger-custom', (e) => {// Image checkbox selector$('.image_select-item-overlay').on('click', (e) => {- const imageId = target.getAttribute('id');+ const imageId = e.currentTarget.getAttribute('id');const checkbox = document.querySelector('input#' + imageId);const checkboxState = checkbox.getAttribute('checked');checkbox.setAttribute('checked', !checkboxState);