select with images

main
alexanderroese 2024-07-18 07:30:38 +02:00
parent 5f312f5e28
commit bcd0279ac8
1 changed files with 2 additions and 2 deletions

View File

@ -605,8 +605,8 @@
const selectedVariant = event.currentTarget.getAttribute('data-value');
const customSelectedValue = document.getElementById('shx-custom-enhanced-dropdown-font-select-selected-value')
customSelectedValue.src = getCustomEnhancedDropdownItemFontAssetUrl(selectedVariant.value)
customSelectedValue.alt = getCustomEnhancedDropdownItemFontAssetAltTag(selectedVariant.value)
customSelectedValue.src = getCustomEnhancedDropdownItemFontAssetUrl(selectedVariant)
customSelectedValue.alt = getCustomEnhancedDropdownItemFontAssetAltTag(selectedVariant)
const selectElement = document.querySelector('.shx-custom-enhanced-dropdown-font-hide-dummy-select');