pull/1/head
Jan Umbach 2024-05-27 22:14:57 +02:00
parent 351b536ad2
commit 0cc0a6ca4b
1 changed files with 3 additions and 1 deletions

View File

@ -1055,13 +1055,15 @@ class VariantSelects extends HTMLElement {
if (thumbnail.classList.contains('is-active') === false) {
thumbnail.classList.add('is-active');
}
thumbnail.style.display = '';
} else {
// check if has class "is-active" to hide the image
if (thumbnail.classList.contains('is-active') === true) {
thumbnail.classList.remove('is-active');
}
thumbnail.style.display = 'none';
}
thumbnail.style.display = '';
}
);