dropdown for product variant picker
parent
d1dfe74d84
commit
fcdc58883d
|
@ -127,7 +127,7 @@
|
|||
<div style="display: flex; align-items: center">
|
||||
{% for product_variant in product.variants %}
|
||||
{% if option.selected_value == product_variant.title %}
|
||||
<img src="{{ product_variant.featured_image.src | image_url }}" height="40" width="40" style="border-radius: 4px">
|
||||
<img id="shx-custom-variant-picker-selected-image" src="{{ product_variant.featured_image.src | image_url }}" height="40" width="40" style="border-radius: 4px">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
@ -181,7 +181,7 @@
|
|||
|
||||
dropdownContent.style.display = 'none';
|
||||
|
||||
console.log("curr", event.currentTarget)
|
||||
console.log("curr", event.currentTarget.querySelector("img").src)
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue