test
parent
351b536ad2
commit
0cc0a6ca4b
|
@ -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 = '';
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue