pull/1/head
Jan Umbach 2024-05-28 17:25:17 +02:00
parent 755d7c7102
commit dc74f8768d
1 changed files with 4 additions and 1 deletions

View File

@ -1151,7 +1151,10 @@ class VariantSelects extends HTMLElement {
const targetId = target.split('__')[1]; // "main-38794319626516"
const targetIdSplit = targetId.split('-')[1]; // "38794319626516"
mediaGallery.setActiveMedia(`${this.dataset.section}-${targetIdSplit}`, true);
setTimeout(() => {
mediaGallery.setActiveMedia(`${this.dataset.section}-${targetIdSplit}`, true);
}, 100);
break;
}