dropdown for product variant picker

main
alexanderroese 2024-07-13 23:49:04 +02:00
parent 5e479eed8f
commit 5208f31257
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@
background-color: #e9e9e9;
}
.shx-dummy-select {
.shx-custom-variant-picker-dummy-select {
display: none;
}
</style>
@ -111,7 +111,7 @@
<div class="shx-custom-variant-picker-dropdown field custom">
<select
id="Option-{{ section.id }}-{{ forloop.index0 }}"
class="shx-dummy-select field__input"
class="shx-custom-variant-picker-dummy-select field__input"
name="options[{{ option.name | escape }}]"
form="{{ product_form_id }}"
>
@ -141,7 +141,7 @@
</div>
<script>
const selectElement = document.querySelector('.shx-dummy-select');
const selectElement = document.querySelector('.shx-custom-variant-picker-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')