From 0351029621245c8c6793ff2bb56ff681f749c807 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Wed, 17 Jul 2024 22:33:44 +0200 Subject: [PATCH] select with images --- snippets/shx-3d-render-input.liquid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 42de3a7..6078615 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -620,9 +620,11 @@ } function loadCustomEnhancedDropdownSelectedValue() { - const selectElement = document.querySelector('.shx-custom-enhanced-dropdown-font-hide-dummy-select'); + setTimeout(() => { + const selectElement = document.querySelector('.shx-custom-enhanced-dropdown-font-hide-dummy-select'); - document.getElementById("shx-custom-enhanced-dropdown-font-select-selected-value").innerText = selectElement.value + document.getElementById("shx-custom-enhanced-dropdown-font-select-selected-value").innerText = selectElement.value + }, 1000) }; function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) {