select with images

main
alexanderroese 2024-07-17 19:46:11 +02:00
parent a2b34cd81e
commit 1f8b866bab
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@
<div class="shx-custom-enhanced-dropdown field custom">
<select
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 }}]"
form="{{ product_form_id }}"
>
@ -149,7 +149,7 @@
</div>
<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 selectedButton = document.getElementById('shx-custom-variant-picker-selected');
const customSelectedValue = document.getElementById('shx-custom-variant-picker-selected-value')