Skip to content

Commit ac8051f

Browse files
authored
Merge pull request #14 from thelia-modules/Lucanis-patch-1
fix wrong selector for the click listener on SingleProduct
2 parents 4120eed + fc71697 commit ac8051f

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)