select with images
parent
a2b34cd81e
commit
1f8b866bab
|
@ -110,7 +110,7 @@
|
||||||
<div class="shx-custom-enhanced-dropdown field custom">
|
<div class="shx-custom-enhanced-dropdown field custom">
|
||||||
<select
|
<select
|
||||||
id="Option-{{ section.id }}-{{ forloop.index0 }}"
|
id="Option-{{ section.id }}-{{ forloop.index0 }}"
|
||||||
class="shx-custom-enhanced-dropdown-hide-dummy-select field__input"
|
class="shx-custom-enhanced-dropdown-hide-dummy-select shx-custom-variant-picker-selected-hide-dummy-select field__input"
|
||||||
name="options[{{ option.name | escape }}]"
|
name="options[{{ option.name | escape }}]"
|
||||||
form="{{ product_form_id }}"
|
form="{{ product_form_id }}"
|
||||||
>
|
>
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const selectElement = document.querySelector('.shx-custom-variant-picker-dummy-select');
|
const selectElement = document.querySelector('.shx-custom-variant-picker-selected-hide-dummy-select');
|
||||||
const dropdownContent = document.getElementById('shx-custom-variant-picker-dropdown-content');
|
const dropdownContent = document.getElementById('shx-custom-variant-picker-dropdown-content');
|
||||||
const selectedButton = document.getElementById('shx-custom-variant-picker-selected');
|
const selectedButton = document.getElementById('shx-custom-variant-picker-selected');
|
||||||
const customSelectedValue = document.getElementById('shx-custom-variant-picker-selected-value')
|
const customSelectedValue = document.getElementById('shx-custom-variant-picker-selected-value')
|
||||||
|
|
Loading…
Reference in New Issue