Skip to content

Commit fc71697

Browse files
authored
fix wrong selector for the click listener on SingleProduct
1 parent 4120eed commit fc71697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/frontOffice/default/datalayer/select-item.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
document.addEventListener("DOMContentLoaded", function(e) {
33

4-
const products = document.getElementsByClassName("SingleProduct");
4+
const products = document.querySelectorAll("a.SingleProduct, .SingleProduct a");
55

66
let processLinkClick = async function(e) {
77
let targetUrl;
@@ -44,4 +44,4 @@
4444
}
4545

4646
});
47-
</script>
47+
</script>

0 commit comments

Comments
 (0)