test
parent
e5593d351d
commit
38357a8673
|
@ -1036,6 +1036,7 @@ class VariantSelects extends HTMLElement {
|
|||
|
||||
// only show the image with the alt tag that matches the variant title
|
||||
document.querySelectorAll('[thumbnail-alt]').forEach((thumbnail) => {
|
||||
console.log(thumbnail.getAttribute('thumbnail-alt'));
|
||||
if (thumbnail.getAttribute('thumbnail-alt') === this.currentVariant.featured_image.alt) {
|
||||
thumbnail.style.display = 'block';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue