diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 2c9dda4..4ca2401 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -598,7 +598,7 @@ console.log("onFontDropdownItemClick") const selectedVariant = event.currentTarget.getAttribute('data-value'); - customSelectedValue.innerText = selectedVariant; + document.getElementById('shx-custom-enhanced-dropdown-font-select-selected-value').innerText = selectedVariant; // Set the selected option in the original select element selectElement.value = selectedVariant; @@ -617,11 +617,11 @@ dropdownContent.style.display = 'none'; - const currentTargetImage = event.currentTarget.querySelector("img") + // const currentTargetImage = event.currentTarget.querySelector("img") - if (currentTargetImage !== null && currentTargetImage.src !== null) { + // if (currentTargetImage !== null && currentTargetImage.src !== null) { //document.getElementById("shx-custom-enhanced-dropdown-variant-selected-image").src = event.currentTarget.querySelector("img").src - } + // } } function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) { @@ -641,7 +641,7 @@